• 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: j o a r <email@hidden>
  • Date: Sun, 20 Nov 2005 11:10:15 +0100


On 19 nov 2005, at 21.41, 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? I was under the impression that it checked to see whether some object on the responder chain could respond to the action and if so, it would check if that object had a validateMenuItem and call it. Now clearly that can't be the case when the menu item is connected to an object instead of the responder chain. But in that case, I'd expect everything to be much simpler; the message just gets sent. That's it. So, why would connecting "Quit" directly to the NSApplication instance make any difference?

The point of application modality is to disable all user events that are not associated with the modal window. If this is not what you're after, perhaps you shouldn't use an application modal dialog at all? What are you really trying to do here?


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Problems making a framework (was tabbed class like Safari)
  • Next by Date: Re: Cocoa framework for iSight?
  • Previous by thread: Re: Modal dialog weirdness
  • Next by thread: Re: Modal dialog weirdness
  • Index(es):
    • Date
    • Thread