• 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
Re: NSToolbarItem identifier?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbarItem identifier?


  • Subject: Re: NSToolbarItem identifier?
  • From: Brandon Walkin <email@hidden>
  • Date: Fri, 26 Dec 2008 07:43:44 -0500


On 22-Dec-08, at 4:37 AM, Quincey Morris wrote:

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.



Replying a bit late here but I should point out that since version 1.0.2 of the BWToolkit IB plugin, it has supported the ability to specify an toolbar item's identifier in the inspector.


Screenshot: http://www.quicksnapper.com/bwalkin/image/item-identifier
Info & Download: http://www.brandonwalkin.com/blog/2008/11/13/introducing-bwtoolkit/
_______________________________________________

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


  • Follow-Ups:
    • Re: NSToolbarItem identifier?
      • From: "aaron smith" <email@hidden>
References: 
 >NSToolbarItem identifier? (From: "aaron smith" <email@hidden>)
 >Re: NSToolbarItem identifier? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: modifier key query
  • Next by Date: NSTextField super imposes the text
  • Previous by thread: Re: NSToolbarItem identifier?
  • Next by thread: Re: NSToolbarItem identifier?
  • Index(es):
    • Date
    • Thread