• 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: setState not working as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setState not working as expected


  • Subject: Re: setState not working as expected
  • From: Bill Allaire <email@hidden>
  • Date: Thu, 27 Sep 2007 21:32:14 -0400


On Sep 26, 2007, at 2:40 PM, Matt Neuburg wrote:

You don't give any code so clearly you don't want (and won't get) specific
help. But in general, you might find it easiest to set menu item state in
validateMenuItem:. All menu items arrive here, so you can check the tag and
the current state of the app and set that menu item's state accordingly. For
a working example, download my Thucydides app from versiontracker and look
at the code for the *earlier* versions of the app (Thucydides and
ThucydidesBinding), where I was using an NSSearchField menu to set search
options. (In the current version of the app, ThucydidesCoreData, I use a
different interface involving radio buttons and predicates.) m.



Thank you. validateMenuItem: worked just fine.



bill
_______________________________________________

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: 
 >Re: setState not working as expected (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: [Moderator] unacceptable behavior
  • Next by Date: Popup vs pull down menu item missing
  • Previous by thread: Re: setState not working as expected
  • Next by thread: Get the CPU architecture of the local m/c
  • Index(es):
    • Date
    • Thread