• 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
Re: No Reference to Table Column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Reference to Table Column


  • Subject: Re: No Reference to Table Column
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 6 Oct 2005 08:52:53 -0700

Am Oct 6, 2005 um 7:35 AM schrieb Andreas Mayer:

I solved that problem by overwriting NSTableView's _readPersistentTableColumns and _writePersistentTableColumns.

Try Joars suggestion of setting the autosave name in awakeFromNib (I haven't tried it, but it sounds like a good idea). I don't reccomend overriding SPI (although, I do realize that sometimes it is the only way to work around things).



Yes, I know about the dangers of using private methods. I'd still appreciate if you didn't remove those in the near future. :)

We wouldn't ever remove them in a point release, and chances are we won't remove them (or rename them) in a future release. I'll make a note of it that some people are overriding them as work arounds, however, first try the above suggestion.




A related bug is to set the autosave name, run your app, add a new column in IB, and run your app again; the new column will never appear!


While you are fixing that: I think there's a problem when a column is missing. I.e. you create some columns, test the app (so that the columns get saved), remove one of the columns in IB and test again. IIRC that would throw an exception.

Originally (before I owned the code), TableView was doing this. It was changed to not do that, since it caused more problems. Apps wouldn't be as resiliant to changes made to the tablecolumns in IB; it would force developers (and potentially users) to delete old settings (or, the developer would have to change the autosave name everytime he/she removed/added a new column).


thanks!
--corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >No Reference to Table Column (From: Philip Dow <email@hidden>)
 >Re: No Reference to Table Column (From: Corbin Dunn <email@hidden>)
 >Re: No Reference to Table Column (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Dock Height ?
  • Next by Date: Re: Dock Height ?
  • Previous by thread: Re: No Reference to Table Column
  • Next by thread: Re: No Reference to Table Column
  • Index(es):
    • Date
    • Thread