mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-30 14:17:40 +00:00
Various fixes.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user