Re: saving tables and user defined strings
Re: saving tables and user defined strings
- Subject: Re: saving tables and user defined strings
- From: Ondra Cada <email@hidden>
- Date: Wed, 22 Aug 2001 00:40:36 +0200
Mark,
>
>>>>> Mark Wridt (MW) wrote at Tue, 21 Aug 2001 13:16:22 -0700 (PDT):
MW> >OTOH, if you want to store the table layout, again
MW> >RTFM, this time
MW> >NSTableView.html (I guess in the newest IB you can
MW> >set it even in inspector,
MW> >but I am not quite sure -- I mostly use MOSXS1.x,
MW> >where it was not possible).
MW>
MW> I would like to save the table layout, and each file
MW> that is put into the table layout.
???? Do we speak of the same thing ????
I guess there is no "file put into the layout"; the table shows generic data
(provided by the data source) in cells, ordered in some layout.
MW> using writeToFile:Automicaly: and it, of course,
MW> produces an XFL formatted document.
Sure. You do that to save the model data, the contents of the data source.
MW> I would like it
MW> to produce a saved table with the layout and the
MW> content,
Nope, it not the right thing. The table layout is a user-dependent issue --
two different users might want to lay out a table with the very same contents
(model, data source) differently.
Therefore, you want to store the layout into defaults database.
MW> but I don't understand (where to find info,
MW> or how to implement) the NSTableView.html you speak
MW> of.
See setAutosaveName: and setAutosaveTableColumns: methods.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc