On Aug 28, 2012, at 9:28 AM, Motti Shneor wrote: > But when I'm trying to do this in my XCode 4.2 project, in a .xib file, I > experience several problems, and finally a crash on loading the .xib file. > > 1. In Interface builder, only one of the binding options appears for > NSSegmentedControl (Raises for Not Applicable Keys) all the rest are simply > not there. > > 2. I have bound my NSSegmentedControl's "selectedIndex" to the "Shared User > Defaults Controller.values.mySegmentedControlSelection" key, but the > application crashes as I load the .xib file, claiming that NSSegmentedControl > is not key-value-coding compliant with the key "selectedIndex".
Did you register "mySegmentedControlSelection" with user defaults as specified by the docs for using user defaults? > 3. BTW, my segmented control is configured for "Any" meaning, multiple > segments can be selected concurrently. However, changing this to only single > selection did not cure the crash. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com