Table Data and NSArrayController
Table Data and NSArrayController
- Subject: Table Data and NSArrayController
- From: email@hidden
- Date: Tue, 23 Dec 2003 17:21:10 -0500
I have a table whose data is gotten from an NSArrayController. The
NSArrayController gets its arranged data from the default user
preferences controller, which finds an array of strings. This works
perfectly, as the table shows the list of strings stored in the
preferences plist. However, when I try to edit the string in the table,
my changes take absolutely no effect, and the data reverts to what was
retrieved from the plist at first. I even tried changing the preference
file during execution, but those changes were overwritten, so the
preferences are not being updated. More strangely, I can add other
entries by means of a button whose target is the add: method of the
NSArrayController, but I can only add entries without content. That is,
empty entries are added to the table and to the preferences file, but
then I have the same problem with editing those new entries as I did
with the first entries. In short, how can I make this work? How can I
have a table to which you can entries and have them written to file via
the controllers and so on. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.