Re: setState not working as expected
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