• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to disable the "Open Recent" menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Action isn't sent
  • Next by Date: Re: NSTextField filters
  • Previous by thread: Re: NSTextField filters
  • Next by thread: Unable to the intValue from NSString nor NSTextField
  • Index(es):
    • Date
    • Thread