How to disable the "Open Recent" menu
How to disable the "Open Recent" menu
- Subject: How to disable the "Open Recent" menu
- From: Lorenzo <email@hidden>
- Date: Tue, 13 Jul 2004 23:11:12 +0200
I have implemented the menu "Open Recent".
And I have implemented the method
- (BOOL)validateMenuItem:(NSMenuItem*)theItem
and I have assigned to that menu item the tag 12, but I cannot see any call
from that menu in the above method. When I define the following
- (BOOL)validateMenuItem:(NSMenuItem*)theItem
{
NSLog(@"validateMenuItem \"%@\" (tag: %d)", [theItem title], tag);
}
The item "Open Recent" never invokes the method "validateMenuItem". I never
see the log text with its item name. I need to disable it in some cases.
What am I doing wrong?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.