Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spike099

macrumors regular
Original poster
Feb 18, 2007
143
0
Canada
I've got a very simple binding that enables a NSPopUpButton. The binding is a BOOL value. However I want the NSPopUpButton to be enabled when the BOOL value is false. Are there such a thing as keypath modifiers? Kinda like NSArray's @count, @max etc?

I've searched everywhere but am obviously calling it the wrong name if it does exist.

Thanks for your help.

Edit:
I'd like something like
@not.isDisplayed
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
In IB's Bindings Inspector, try setting the Value Transformer to NSNegateBoolean. From the docs:
This value transformer negates a boolean value, transforming YES to NO and NO to YES.​
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.