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

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


  • Subject: Menu item with 'title' bound is always enabled. Bug?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 20 May 2009 18:21:42 -0700

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.

The fix is obvious -- don't bind any titles, set all titles in menuNeedsUpdate:.

But ain't this a bug?  (Mac OS 10.5.6)

_______________________________________________

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


  • Follow-Ups:
    • Re: Menu item with 'title' bound is always enabled. Bug?
      • From: "Sean McBride" <email@hidden>
    • Re: Menu item with 'title' bound is always enabled. Bug?
      • From: Mike Abdullah <email@hidden>
    • Re: Menu item with 'title' bound is always enabled. Bug?
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Tools in App Bundles
  • Next by Date: Re: Menu item with 'title' bound is always enabled. Bug?
  • Previous by thread: Re: Usefulness of NSSharedUserDefaultsController?
  • Next by thread: Re: Menu item with 'title' bound is always enabled. Bug?
  • Index(es):
    • Date
    • Thread