Re: No Reference to Table Column
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