Re: Enabling menu items?
Re: Enabling menu items?
- Subject: Re: Enabling menu items?
- From: Kai-Mikael Jää-Aro <email@hidden>
- Date: Wed, 25 Jul 2007 14:01:27 +0200
António Nunes kirjoitti 2007-07-25 kello 13:52:
On 25 Jul 2007, at 09:47, Kai-Mikael Jää-Aro wrote:
- (BOOL)validateUserInterfaceItem:(id
<NSValidatedUserInterfaceItem>)anItem {
[...]
But, in spite of all this, all items in the Edit menu are disabled
when running the program. What have I forgotten to add to this?
To validate menu items use this instead:
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem
Makes no difference.
Also, the Application Menu and Pop-up List Programming Topics for
Cocoa manual says: "In general, you should use
validateUserInterfaceItem: instead of validateMenuItem: since the
former will also work for toolbar items which have the same target
and action." so shouldn't I use the former?
_______________________________________________
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