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 PROTECTED]>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to