| Article: |
Working with Tables: Writing an Address Book Application | |
| Subject: | more info... | |
| Date: | 2001-08-16 20:57:54 | |
| From: | jakem | |
|
Response to: Has anyone used NSTableView.SetAutosaveTableColumns() ?
|
||
| I just realised where the problem is (I think!). Interface Builder does not save the information about a NSTableView's autoSave name!! I enter the name in the attribute field, save the .nib file, quit, re-open the .nib file and the autoSave field is blank again!! - strange :( I guess the only solution is to set the autoSave name programatically, using the SetAutosaveName() method. However, where do I place this call? any ideas? | ||
Showing messages 1 through 2 of 2.
-
more info...
2001-08-16 22:33:37 Michael Beam |
[View]
-
more info...
2001-08-22 04:49:50 jakem [View]
Well, I've tried everything and IB simply does not save my table's autosave name. I can enter a autosave name for the window and this works great.. but no autosave for a table. Could this be because may tables are within a tab pane?? Has anyone else had this problem?



If you want to set a table view's autosave name programatically, i think the best place to do this would be in awakeFromNib or whatever initialization method you use.
You can also do the same thing for windows. If you look at a window's attributes in the info panel, you will notice a field for the window's title, and a seperate one for the window's name. The name they speak of here is an autosave name, and by giving it a name you're application will rememeber window size and position between launches.
Mike