Re: Menu bindings & 'Auto Enables Items' ?
Re: Menu bindings & 'Auto Enables Items' ?
- Subject: Re: Menu bindings & 'Auto Enables Items' ?
- From: Jonathan del Strother <email@hidden>
- Date: Wed, 14 Dec 2005 13:05:33 +0000
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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