Re: binding NSMenuItem's "enabled"
Re: binding NSMenuItem's "enabled"
- Subject: Re: binding NSMenuItem's "enabled"
- From: Larry Fransson <email@hidden>
- Date: Thu, 27 May 2004 14:16:14 -0700
On May 26, 2004, at 21:30, Mark A. Stratman wrote:
In the AppController source i have the methods: "setLoggedin:(NSNumber
*)" and "(NSNumber *)loggedin".
I'm using "[self setValue:[NSNumber numberWithBool:NO]
forKey:@"loggedin"]" within AppController to try to disable the menu
item.... but it's not working.
The menu item is always enabled.
Anybody have any ideas, or pointers?
Is there a particular reason why you need to use NSNumbers? Seems to
me that you really need a BOOL to make it work. Either that or you're
going to need to write a value transformer to transform the NSNumber to
a BOOL value.
Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.