• 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: Why are my toolbar items disabled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why are my toolbar items disabled?


  • Subject: Re: Why are my toolbar items disabled?
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Wed, 23 Jul 2003 17:54:32 +0100

On Wednesday, July 23, 2003, at 05:28 pm, John Lombardo wrote:

Is anyone here aware of any circumstances under which all my toolbar items
would be disabled? I've just created a dictionary of dummy NSToolbarItems,
and whilst they all appear in the toolbar and customization palette, they
become disabled the moment they are dropped into the toolbar.

If there are no targets/actions associated with them, or if the action they are wired to isn't yet implemented (i.e. the target doesn't support that selector yet), then they will be disabled automatically by the framework; they will also be disabled if the target returns NO in response to -validateToolbarItem:.

You can turn the automatic enable/disable behaviour off for menus by using -setAutoenablesItems: on the NSMenu, but I don't think NSToolbar has an equivalent.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Why are my toolbar items disabled? (From: John Lombardo <email@hidden>)

  • Prev by Date: Re: Why are my toolbar items disabled?
  • Next by Date: Re: Design for Cocoa (was Re: Can a subclass of NSDictionary do this?)
  • Previous by thread: Re: Why are my toolbar items disabled?
  • Next by thread: Re: Why are my toolbar items disabled?
  • Index(es):
    • Date
    • Thread