• 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: Menu items vs modal sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu items vs modal sessions


  • Subject: Re: Menu items vs modal sessions
  • From: Pierre Bernard <email@hidden>
  • Date: Mon, 14 Apr 2008 16:28:17 +0200

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 are
enabled 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 as
intelligent use of the responder chain), rather than jerry-rig a band-aid
solution.



--- 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

  • Follow-Ups:
    • Re: Menu items vs modal sessions
      • From: "Kyle Sluder" <email@hidden>
References: 
 >Re: Menu items vs modal sessions (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: "hooking" into another app
  • Next by Date: Re: HUD-style panel controls?
  • Previous by thread: Re: Menu items vs modal sessions
  • Next by thread: Re: Menu items vs modal sessions
  • Index(es):
    • Date
    • Thread