FROM : Ben Lachman
DATE : Thu Apr 03 22:30:57 2008
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_removed>
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_removed>
> 740.590.0009
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
DATE : Thu Apr 03 22:30:57 2008
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_removed>
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_removed>
> 740.590.0009
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Ben Lachman | Apr 3, 19:16 | |
| Ben Lachman | Apr 3, 22:30 |






Cocoa mail archive

