Re: How disable File/Open command
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