Re: Binding NSSegmentedControl selection to user defaults

2012-08-29 Thread Keary Suska
On Aug 29, 2012, at 3:50 AM, Motti Shneor wrote: > Hi Keary and thanks. > > I don't quite understand - do you mean by "registering" my key, Adding an > entry to my Application's preferences file (.plist) ? If so --- than I tried > that, but I did not know what exactly to write there. > > I

Re: Binding NSSegmentedControl selection to user defaults

2012-08-29 Thread Motti Shneor
Hi Keary and thanks. I don't quite understand - do you mean by "registering" my key, Adding an entry to my Application's preferences file (.plist) ? If so --- than I tried that, but I did not know what exactly to write there. In addition I unchecked the "Raises for Not Applicable Keys" opti

Re: Binding NSSegmentedControl selection to user defaults

2012-08-28 Thread Keary Suska
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 > NSSegmentedContro

Binding NSSegmentedControl selection to user defaults

2012-08-28 Thread Motti Shneor
Hello everyone. I'm trying to do something simple --- to have an NSSegmentedControl (2 segments) save and restore its selection (the "pressed" segments) from the user-defaults. Documentation seems to be quite clear: Cocoa Bindings Reference: NSSegmentedControl Bindings