Menu items vs modal sessions
Menu items vs modal sessions
- Subject: Menu items vs modal sessions
- From: Pierre Bernard <email@hidden>
- Date: Sun, 13 Apr 2008 18:12:22 +0200
Hi!
How come some menu items are enabled and others disabled while there
is a modal session going on?
Does this mean that Apple has implemented validateMenuItem somewhere
in the responder chain to check for modalWindow and attachedSheet?
Where in the responder chain would that be?
I have wired up most of my menu items using Cocoa bindings. It would
then only seem logical to use bindings to determine if those menu
items should be enabled when a modal window or sheet is being
displayed. So I bound enabled to NSApp.modalWindow and to
window.attachedSheet using a NSIsNil transformer. Is the way to go?
Pierre
---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.com
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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