Various fixes.

This commit is contained in:
Ross Boucher
2009-02-02 18:24:06 -07:00
parent a9034de9cd
commit 94c838dfde
3 changed files with 27 additions and 2 deletions
+8
View File
@@ -230,6 +230,14 @@
return _title;
}
/*!
Set's the item's text color
*/
- (void)setTextColor:(CPString)aColor
{
//FIXME IMPLEMENT
}
/*!
Sets the font for the text of this menu item
@param aFont the font for the menu item
+9
View File
@@ -138,6 +138,15 @@ var CPPopUpButtonArrowsImage = nil;
}
// Inserting and Deleting Items
/*!
Adds a new menu item using a CPMenuItem object.
*/
- (void)addItem:(CPMenuItem)anItem
{
[_menu addItem:anItem];
}
/*!
Adds a new menu item with the specified title.
@param the new menu item's tite
+10 -2
View File
@@ -51,7 +51,7 @@
if (++_index >= [_array count])
return nil;
return _array[_index];
return [_array objectAtIndex:_index];
}
@end
@@ -81,7 +81,7 @@
if (--_index < 0)
return nil;
return _array[_index];
return [_array objectAtIndex:_index];
}
@end
@@ -735,6 +735,14 @@
return sorted;
}
/*!
Return a copy of the receiver sorted using the function passed into the first parameter.
*/
- (CPArray)sortedArrayUsingFunction:(Function)aFunction
{
return [self sortedArrayUsingFunction:aFunction context:nil];
}
/*!
Returns an array in which the objects are ordered according
to a sort with <code>aFunction</code>. This invokes