Disable OSX App's menu? - have to do it; it's another bug

Alex Rice alex at mindlube.com
Mon Sep 8 11:24:00 EDT 2003


On Monday, September 8, 2003, at 08:20  AM, Barry Levine wrote:

> Alex,
>
> When you select "Quit" (with a modal dialog in the foreground - and 
> the "ask" or "answer" command has always been modal), the app does not 
> quit -but- it won't respond to that menu item ever again (during that 
> session). In other words, you have to force-quit the app.

OK so there are two possible different issues here 1) disabling the 
Quit menu item when appropriate, and 2) not being able to quit the app 
in a particular situation.

> If you do any Cocoa development, create an app with a modal dialog. 
> When that dialog is "up", see if you can quit. I'll bet you can't. You 
> can "hide" the app, of course, but quitting is an inappropriate action 
> in the middle of a modal activity.

I looked in a Cocoa app I wrote and while a modal dialog up, the Quit 
menu item is *enabled*, but has no effect. That is what I would expect 
because I haven't coded anything to disable the Quit menu item. No 
problems quitting afterwards.

> I filed bug report #567 over this issue.

Good. I simply am wondering if it's realistic for runrev to disable the 
quit menu item for you, if Cocoa doesn't even do it.

On the other hand, not being able to quit your app would seem to be a 
bug :-)


Alex Rice <alex at mindlube.com> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco




More information about the use-livecode mailing list