I have created a preference pane that allows the user to select a QTCaptureDevice. In Interface Builder, I bind a KVC-compliant method in my model class that retrieves an NSArray
of QTCaptureDevice
s to an NSArrayController
, which is in turn bound to an NSPopupButton
. This all works; the list of QTCaptureDevice
s appears in my NSPopupButton
and the selected device may be retrieved e.g. by an NSLabel
's value property bound to the ArrayController, key selection
, Model Key Path uniqueID
; now I want to store that uniqueID
into User Defaults for my application. The User Defaults object in InterfaceBuilder, however, doesn't expose any way to bind values from the Binding panel in the inspector (as I bound my NSLabel
). What's the best way to do this?