• 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 item with 'title' bound is always enabled. Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menu item with 'title' bound is always enabled. Bug?


  • Subject: Re: Menu item with 'title' bound is always enabled. Bug?
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 21 May 2009 00:48:41 -0400

one issue (which may not be related)

apparently if you bind the target binding, the validateMenu... method doesn't get called. I'll try to get that into an update of the cocoabindingsref as soon as possible, but it'll be post WWDC.


On 20-May-09, at 9:28 PM, Seth Willits wrote:

On May 20, 2009, at 6:21 PM, Jerry Krinock wrote:

On a main menu item, I've set a delegate which implements - menuNeedsUpdate:. In this method, I enable/disable some items and also modify some item titles based on current conditions.

With some items, however, instead of sending -setTitle: in - menuNeedsUpdate:, I had bound their 'title' in Interface Builder. But I just discovered that this 'title' binding was causing setEnabled:NO sent to these items during -menuNeedsUpdate: to be ignored. A menu item with a 'title' bound is always enabled.


Does the binding have "Conditionally Sets Enabled" checked? Uncheck it if it does.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Menu item with 'title' bound is always enabled. Bug? (From: Jerry Krinock <email@hidden>)
 >Re: Menu item with 'title' bound is always enabled. Bug? (From: Seth Willits <email@hidden>)

  • Prev by Date: NSTextView - Having to call setFrame twice to work?
  • Next by Date: Re: Setting the cursor position to particular point
  • Previous by thread: Re: Menu item with 'title' bound is always enabled. Bug?
  • Next by thread: Re: Menu item with 'title' bound is always enabled. Bug?
  • Index(es):
    • Date
    • Thread