• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Solved] Change NSToolbarItem appearence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

  • Prev by Date: PBI: tear-off tab items?
  • Next by Date: Re: NSDocument close notification
  • Previous by thread: Re: PBI: tear-off tab items?
  • Next by thread: Adding your app to the Login Items?
  • Index(es):
    • Date
    • Thread