• 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: binding NSMenuItem's "enabled"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >binding NSMenuItem's "enabled" (From: "Mark A. Stratman" <email@hidden>)

  • Prev by Date: Re: How far with accessors?
  • Next by Date: Re: How far with accessors?
  • Previous by thread: binding NSMenuItem's "enabled"
  • Next by thread: setting url helper
  • Index(es):
    • Date
    • Thread