Cocoa: How to bind a boolean property to NSCellStateValue?
问题 I would like to bind the boolean enabled property of an NSTextField to the state of an NSButton . I already tried adding a custom NSValueTransformer that transforms the state of the NSButton into NSNumber . However, in that scenario the text fields are disabled all the time for some reason. My second approach: To bad fails also since NSValueTransformer does not offer return primitives types such as BOOL . Example: The screenshot shows an example in which the text fields are disabled because