Bindings: NSArrayController <> Shared User Defaults
Bindings: NSArrayController <> Shared User Defaults
- Subject: Bindings: NSArrayController <> Shared User Defaults
- From: Dominik Pich <email@hidden>
- Date: Mon, 31 Dec 2007 11:42:28 +0100
Hi,
as the title states I have a Problem with binding my ArrayController
to the Shared User Defaults... changes to items in the array dont get
flushed back
I have an array in a plist in my bundle:
<items>
<dict>
<key>name</key>
<string>bla1</string>
<key>enabled</key>
<true/>
</dict>
<dict>
<key>name</key>
<string>bla22222</string>
<key>enabled</key>
<true/>
</dict>
<dict>
<key>name</key>
<string>bla33</string>
<key>enabled</key>
<true/>
</dict>
</items>
this array I read from plist, I use with registerDefaults as a key:
"items"
I then bind an NSArrayController to the shared defaults controller
using values.items as the binding. To that Controller I bind a
tableView. 1. Column :: name, 2. Column: enabled (using a
PopupButtonCell)
I CANNOT add or remove items from the array -- dont want
I want to be able to toggle the enabled state of items
--- all working great so far ^^
But now comes the Problem: Changes are never ..... committed back to
the defaults.
Why is that? It seems to me that the new array is somehow considered
to be identical to the old?
Regards,
Dominik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden