• 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
Re: How disable File/Open command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How disable File/Open command


  • Subject: Re: How disable File/Open command
  • From: Vyacheslav Karamov <email@hidden>
  • Date: Mon, 15 Aug 2011 16:18:01 +0300

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html#//apple_ref/doc/uid/20000261-BAJBFGED

15-Aug-11 16:08, McLaughlin, Michael P. пишет:
I have a Cocoa document app targeting Snow Leopard.  It is, in most respects, a standard document app except that, given an input file, it launches a long, multi-threaded computation.  Consequently, it can handle only one input file at a time.

For the obvious reasons, I would very much like to disable the File/Open… command while the computation is proceeding.  However, nothing I have been able to find seems to work with this command.  For instance, the code below will disable the Open Recent command but the Open command seems immune.

I have also tried to intercept the Open command in myDocController.m with a call to


-(BOOL)validateMenuItem:(id)sender


_______________________________________________

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


References: 
 >How disable File/Open command (From: "McLaughlin, Michael P." <email@hidden>)

  • Prev by Date: How disable File/Open command
  • Next by Date: How disable File/Open command -- SOLVED
  • Previous by thread: How disable File/Open command
  • Next by thread: How disable File/Open command -- SOLVED
  • Index(es):
    • Date
    • Thread