validateMenuItem isn't called?
validateMenuItem isn't called?
- Subject: validateMenuItem isn't called?
- From: Mark Dawson <email@hidden>
- Date: Tue, 29 Mar 2005 17:46:13 -0800
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++;
The code won't break on the i++ (or on the actual code later on). I can verify that other selectors in validateMenuItem ARE called (such as if (action == @selector(cut:))…)
Can any give some thoughts about why this selector isn't being passed to validateMenuItem?
Thanks,
Mark
_______________________________________________
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