Re: Interface Builder (almost) supports NSToolbar
Re: Interface Builder (almost) supports NSToolbar
- Subject: Re: Interface Builder (almost) supports NSToolbar
- From: Karl Moskowski <email@hidden>
- Date: Mon, 24 Mar 2008 10:22:52 -0400
If you're creating a toolbar for which all items should be selectable,
instead of binding each of the toolbar's items separately or iterating
over them all and building an array, you can just use KVC to get an
array of all items' identifiers.
// NSToolbar delegate method
- (NSArray *) toolbarSelectableItemIdentifiers:(NSToolbar*) toolbar {
return [[myToolbar items] valueForKey:@"itemIdentifier"];
}
(For my prefs window toolbar, this is the only delegate method I've
implemented.)
----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden