[Solved] Change NSToolbarItem appearence
[Solved] Change NSToolbarItem appearence
- Subject: [Solved] Change NSToolbarItem appearence
- From: Antonio Faldetta <email@hidden>
- Date: Tue, 25 Feb 2003 20:08:44 +0100
Hi all, thanks to the guys who answered my question.
Unfortunately I could not use none of the solutions provided.
Instead I added a category to NSToolbar to return an Item by
identifier, here the method I wrote:
- (NSToolbarItem *)itemForItemIdentifier:(NSString *)itemIdentifier
{
NSArray *items;
NSEnumerator *e;
NSToolbarItem *item;
items = [self items];
e = [items objectEnumerator];
while ( item = [e nextObject] )
{
if ( [[item itemIdentifier] isEqualToString:itemIdentifier] )
return item;
}
return nil;
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.