New columns in NSTableView are overridden by plist
New columns in NSTableView are overridden by plist
- Subject: New columns in NSTableView are overridden by plist
- From: Dustin Wenz <email@hidden>
- Date: Fri, 9 Feb 2007 12:04:17 -0600
In an older version of my app, I had a NSTableView with 3 columns.
The column positions autosave so that any custom arrangement is
preserved for the user.
So, now I'm in version 2 of my application, and I've added a fourth
column to the table. The problem is that no user who upgrades from
the previous version can see the fourth column!
The root of the issue lies in the "NSTableView Columns myTableView"
key in the application plist. When the table awakes from the nib, it
seems to read the data under that key and omit any columns from the
table which are not already present. This makes it impossible to add
any more columns without blowing away the preferences at launch.
This seems like a fundamental problem for anyone using user defaults
+autosave. Is there a correct way to handle this situation?
- .Dustin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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