• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
New columns in NSTableView are overridden by plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: New columns in NSTableView are overridden by plist
      • From: Andreas Mayer <email@hidden>
    • Re: New columns in NSTableView are overridden by plist
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: POSIX
  • Next by Date: iTunes-like behaviour of NSButton with NSAlternateKeyMask
  • Previous by thread: Re: Crash using mutableSetValueForKeys
  • Next by thread: Re: New columns in NSTableView are overridden by plist
  • Index(es):
    • Date
    • Thread