Re: Modal dialog weirdness
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