Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings: NSArrayController <> Shared User Defaults



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.