Skip to content

Commit

Permalink
Various fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Feb 3, 2009
1 parent a9034de commit 94c838d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
8 changes: 8 additions & 0 deletions AppKit/CPMenuItem.j
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions AppKit/CPPopUpButton.j
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions Foundation/CPArray.j
Expand Up @@ -51,7 +51,7 @@
if (++_index >= [_array count])
return nil;

return _array[_index];
return [_array objectAtIndex:_index];
}

@end
Expand Down Expand Up @@ -81,7 +81,7 @@
if (--_index < 0)
return nil;

return _array[_index];
return [_array objectAtIndex:_index];
}

@end
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94c838d

Please sign in to comment.