On Dec 22, 2008, at 00:44, aaron smith wrote:

I haven't been able to figure out how to set a custom identifier with
NSToolbarItem's. Is it possible? I don't see it anywhere in IB, or
anywhere in the class documentation? I can see the identifier at
runtime, but it's a uuid, can't I set a custom identifier?

You can't set one in IB. The workaround is to declare outlets in your File's Owner object to each of the toolbar items you need to refer to, and then use the outlets directly (or get the IB-assigned identifier via the outlet, if that's what you need). That will probably feel a bit hokey, but perhaps a future version of IB will have a more elegant implementation for this.


_______________________________________________

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 arch...@mail-archive.com

Reply via email to