• 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 bindings & 'Auto Enables Items' ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Menu bindings & 'Auto Enables Items' ? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Menu bindings & 'Auto Enables Items' ?
  • Next by Date: Re: how to make our controller class first responder in document based application?
  • Previous by thread: Menu bindings & 'Auto Enables Items' ?
  • Next by thread: WWDC 2005 DVDs [OT]
  • Index(es):
    • Date
    • Thread