• 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: Quincey Morris <email@hidden>
  • Date: Mon, 22 Dec 2008 01:37:38 -0800

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 (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: Brandon Walkin <email@hidden>
References: 
 >NSToolbarItem identifier? (From: "aaron smith" <email@hidden>)

  • Prev by Date: re: Managed Object won't dealloc even after Hit with Kitchen Sink
  • Next by Date: Re: Toll Free Garbage
  • Previous by thread: NSToolbarItem identifier?
  • Next by thread: Re: NSToolbarItem identifier?
  • Index(es):
    • Date
    • Thread