Re: Menu bindings & 'Auto Enables Items' ?
Re: Menu bindings & 'Auto Enables Items' ?
- Subject: Re: Menu bindings & 'Auto Enables Items' ?
- From: Thaddeus Cooper <email@hidden>
- Date: Sat, 21 Jan 2006 13:07:59 -0800
I've been buried in another part of the project for the last week and
finally got around to implementing this. Works like a champ.
Thanks.
--Thaddeus O. Cooper
(email@hidden)
On Dec 14, 2005, at 5:05 AM, Jonathan del Strother wrote:
On 14 Dec 2005, at 12:58, Jonathan del Strother wrote:
I have a menu which uses Shared Defaults binding for some items,
and the old connected-to-a-custom-controller style for the other
items.
The latter set of items require validation, so my menu has Auto
Enables Items ticked, and validateMenuItem: handles the rest.
However, this seems to permanently disable the items that use
bindings - regardless of the Enabled binding, or the
validateMenuItem return value.
Do bindings not play nicely in menus that use 'Auto Enables
Items', or is there something else going on here?
Hah, typical. I finally twigged what was going on here, 2 minutes
after sending the email...]
The bound menu items didn't have an explicit target, so have
nothing to ask what validateMenuItem returns.
So, until I get around to moving the rest of the menu to use
bindings, I've connected the bound items to a dummy target on my
app controller. Seems to work OK...
Jon _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40nomoreboxes.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden