• 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: Modal dialog weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal dialog weirdness


  • Subject: Re: Modal dialog weirdness
  • From: Derrick Bass <email@hidden>
  • Date: Sun, 20 Nov 2005 17:29:51 -0600

On Nov 20, 2005, at 9:07 AM, Kelvin Delbarre wrote in an off-list email:

On Nov 19, 2005, at 3:41 PM, Derrick Bass wrote:


Can someone point me to an explanation on how menu item enabling works in Cocoa? And how it changes during a modal dialog?


You might find this helpful:

http://www.cocoabuilder.com/archive/message/cocoa/2004/10/7/119051


Thanks! That *is* helpful. I wish that were in the docs; somehow it never came up in all my Googling.


The post mentions that you can get a directly connected menu item to work by use "worksWhenModal". However, "worksWhenModal" is a window and panel method; so I assume that for "Quit" I have to stick to the workaround of connecting it to the First Responder instead of directly to NSApplication?

Derrick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Modal dialog weirdness (From: Derrick Bass <email@hidden>)

  • Prev by Date: Re: Thread context switch
  • Next by Date: NSPredicate performance considerations
  • Previous by thread: Re: Modal dialog weirdness
  • Next by thread: Re: Modal dialog weirdness
  • Index(es):
    • Date
    • Thread