Re: validateMenuItem isn't called?
Re: validateMenuItem isn't called?
- Subject: Re: validateMenuItem isn't called?
- From: Matt Neuburg <email@hidden>
- Date: Tue, 29 Mar 2005 18:06:59 -0800
On Tue, 29 Mar 2005 17:46:13 -0800, Mark Dawson <email@hidden> said:
>I've added a new menu action (IB + code), but it isn't being called in
>my validateMenuItem. I have verified that if I select the menu item,
>my action gets called (so the connection IS connected up correctly).
>
>My code looks like:
>- (BOOL)validateMenuItem:(NSMenuItem *)item {
> SEL action = [item action];
>int i = 0;
>if (action == @selector(editVertexAction))
> i++;
One thing I can guarantee is that if your action is getting called, its name
is not editVertexAction. Its name would have to be more like
editVertexAction: (with a colon). m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden