• 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: Bindings on Contextual Menu Items when to unbind:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings on Contextual Menu Items when to unbind:


  • Subject: Re: Bindings on Contextual Menu Items when to unbind:
  • From: Ben Lachman <email@hidden>
  • Date: Thu, 3 Apr 2008 16:30:57 -0400

After thinking about this a bit more I think the proper response to my message was/is:

Why the heck are you using bindings in a *contextual* menu?

Since bindings are used to keep things (Model/View) in sync, using them in a context menu, which is kind of by definition representative of a timeslice in the UI, doesn't make any sense. Its makes more sense just to set up the initial state of the menu based on the current model properties and go from there.

->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009



On Apr 3, 2008, at 1:16 PM, Ben Lachman wrote:
I have a few contextual menus that have items that are generated dynamically and are bound in code to my model. I'm not sure if/ when I should unbind them however. Is there a good place to do this? Do I even need to?

Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009



_______________________________________________

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

_______________________________________________

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


References: 
 >Bindings on Contextual Menu Items when to unbind: (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: how to hack my own apps
  • Next by Date: Basic XPath Question
  • Previous by thread: Bindings on Contextual Menu Items when to unbind:
  • Next by thread: Why is actually kAuthorizationEnvironmentIcon often not working for 10.4?
  • Index(es):
    • Date
    • Thread