Re: Why are my toolbar items disabled?
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.