Post

Replies

Boosts

Views

Activity

Xcode 12 missing "value" bindings? (ObjC, nibs, Cocoa)
Is there a known issue with the value binding being missing from NSButton in Xcode 12? Here's the Bindings Inspector shown an a fresh NSButton (top image), and shown on an existing button that probably goes back to Xcode 9 or so: (Hmmm, I can't link to imgur, but you might see an example at their domain plus this top-level path: /a/tElLv9I) What's worse, when I modify the existing button in most ways, the binding to value breaks completely. NSButton 0x7fb233f965d0 valueForUndefinedKey:]: this class is not key value coding-compliant for the key value. Even more worse, if I delete the binding, close the nib, and re-open it, then there's no way to re-add the value binding to a button that had been already working. The Cocoa Bindings Documentation - https://developer.apple.com/library/archive/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSButton.html#//apple_ref/doc/uid/NSButton-SW1 indicates that the value binding isn't deprecated and should still be supported. Did I miss a fundamental breaking change somewhere?
3
0
1.3k
Apr ’23
Xcode 12 missing "value" bindings? (ObjC, nibs, Cocoa)
Is there a known issue with the value binding being missing from NSButton in Xcode 12? Here's the Bindings Inspector shown an a fresh NSButton (top image), and shown on an existing button that probably goes back to Xcode 9 or so: (Hmmm, I can't link to imgur, but you might see an example at their domain plus this top-level path: /a/tElLv9I) What's worse, when I modify the existing button in most ways, the binding to value breaks completely. NSButton 0x7fb233f965d0 valueForUndefinedKey:]: this class is not key value coding-compliant for the key value. Even more worse, if I delete the binding, close the nib, and re-open it, then there's no way to re-add the value binding to a button that had been already working. The Cocoa Bindings Documentation - https://developer.apple.com/library/archive/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSButton.html#//apple_ref/doc/uid/NSButton-SW1 indicates that the value binding isn't deprecated and should still be supported. Did I miss a fundamental breaking change somewhere?
Replies
3
Boosts
0
Views
1.3k
Activity
Apr ’23