Thanks for the insights Keary. I did indeed expect to get some of the behavior for free, but didn't.
This is probably due to the fact that I am using bindings to bind menu items to controller actions. I guess one gets the free behavior only when using target/action connections on the first responder.
Maybe the right way of doing things with bindings is to put the controller into an NSObjectController and pull it out / swap it when a modal window comes up. This would approximate the responder chain logic.
Best, Pierre On 13 Apr 2008, at 21:25, Keary Suska wrote:
If you already get certain behavior for free, why complexify it needlessly?What problem are you trying to solve? If you have menu items that areenabled during certain modal sessions, and you specifically don't want them to, then you should look at your application design and adjust accordingly.So, I guess to answer your questions, I would say, "probably not." Better to follow the ways that AppKit wants you to do things (such asintelligent use of the responder chain), rather than jerry-rig a band-aidsolution.
--- Pierre Bernard http://www.bernard-web.com/pierre http://www.houdah.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]