Re: Need help with initializing Menu check boxes
Re: Need help with initializing Menu check boxes
- Subject: Re: Need help with initializing Menu check boxes
- From: Michael Heinz <email@hidden>
- Date: Sun, 5 Dec 2004 09:46:44 -0500
On Dec 4, 2004, at 2:06 AM, M. Uli Kusterer wrote:
All the solutions I've seen offered so far will get the job done, but
I think what you really want is -(BOOL) validateMenuItem:
(id<NSMenuItem>)item; Provide that message e.g. in your window
delegate. It will be called whenever your menu opens, and you can
check whether item is one of your checkmarked menu items and use
setState: on "item" to make it conform to whatever member variable you
keep the state in.
Thanks for the suggestion; I'll try that.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden