Hi all,
Long time lurker around here wondering if I could pop in for some advice & help here.
I have a NSPopupbutton that has its content & selected index (to change it) bound to an NSArrayController which is in turn has its managedObjectContext bound for Core Data access..
This all works great HOWEVER
I was looking for a way to simply and quickly save the NSPopupButtons Selecton without storing this is core data , SO I bound the NSArrayController's 'Selection Indexes' to "Shared User Defaults Controller" and set a model key path and also set the value transformer to NSKeyedUnarchiveFromData, and just for testing sake because I've never usd Shared User Defaults Controller (But have used NSUserDefaults in pure code w/o IB) I bound a couple text field values aswell just to make sure it was working.
Have done alot of debugging around and have looked in the application plist to verify there is a value for the storage key which appears to be there just fine however it WILL NOT restore this selectionindex when the app is reopened,.
Is anyone aware of a way to do this successfully? Would be greatly appreciated..
Long time lurker around here wondering if I could pop in for some advice & help here.
I have a NSPopupbutton that has its content & selected index (to change it) bound to an NSArrayController which is in turn has its managedObjectContext bound for Core Data access..
This all works great HOWEVER
I was looking for a way to simply and quickly save the NSPopupButtons Selecton without storing this is core data , SO I bound the NSArrayController's 'Selection Indexes' to "Shared User Defaults Controller" and set a model key path and also set the value transformer to NSKeyedUnarchiveFromData, and just for testing sake because I've never usd Shared User Defaults Controller (But have used NSUserDefaults in pure code w/o IB) I bound a couple text field values aswell just to make sure it was working.
Have done alot of debugging around and have looked in the application plist to verify there is a value for the storage key which appears to be there just fine however it WILL NOT restore this selectionindex when the app is reopened,.
Is anyone aware of a way to do this successfully? Would be greatly appreciated..
Last edited: