• 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: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs


  • Subject: Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
  • From: Keary Suska <email@hidden>
  • Date: Wed, 12 Jun 2013 17:14:40 -0600

On Jun 12, 2013, at 3:53 PM, David Catmull wrote:

> The documentation for toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: says that it's optional for nib toolbars, but it can still be used to "augment functionality". My experience is that it actually doesn't get called at all in the nib case, which isn't good because I want to know if my items are going into the toolbar or the customize palette. All my delegate is getting is toolbarWillAddItem:, which isn't enough.
>
> Are the docs wrong, or am I doing it wrong?

The docs do not say how Interface Builder-created toolbars differ from programmatically created ones, but it is logical that the nib-instantiated toolbar does not make a number of the toolbar-creation delegate calls even if a delegate is set as the information it would request is already "known".

Also, I suspect that the docs you cite might be saying that you would subclass NSToolbar and implement that delegate method if you want to intercept it.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
      • From: David Catmull <email@hidden>
References: 
 >toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs (From: David Catmull <email@hidden>)

  • Prev by Date: Re: knowing if a titlebar click is actually a resize click
  • Next by Date: Re: knowing if a titlebar click is actually a resize click
  • Previous by thread: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
  • Next by thread: Re: toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar: and nibs
  • Index(es):
    • Date
    • Thread