• 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: 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
  • Prev by Date: Re: drawing and setting pixels
  • Next by Date: Re: anotherDockProgram-help
  • Previous by thread: Re: Document Packages Examples...
  • Next by thread: Resizing an image
  • Index(es):
    • Date
    • Thread