• 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
NSMenuItem Binding Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMenuItem Binding Problem


  • Subject: NSMenuItem Binding Problem
  • From: Adil Saleem <email@hidden>
  • Date: Wed, 11 Mar 2009 14:43:49 -0700 (PDT)

Hi,
 
I am having a little difficulty with bindings of NSMenuItem. I am binding it's value with an integer variable (as it says in the documentation online). The value 1 is supposed to set it's state ON and 0 to OFF and -1 to mixed state.
 
However, the problem is that the actual state of the menu is not getting changed with change in the variable value. I have verified, the connection is properly created. The state of MenuItem gets changed if the value of variable is changed inside an IBAction. But if value is changed in some other normal function (non-IBAction), the state does not change.
 
Please guide.
 
Thank You



_______________________________________________

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: NSMenuItem Binding Problem
      • From: Dave Keck <email@hidden>
  • Prev by Date: subclassing UIScrollView
  • Next by Date: Re: subclassing UIScrollView
  • Previous by thread: Re: subclassing UIScrollView
  • Next by thread: Re: NSMenuItem Binding Problem
  • Index(es):
    • Date
    • Thread