RE: autosave table column problem
RE: autosave table column problem
- Subject: RE: autosave table column problem
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Tue, 12 Nov 2002 14:20:58 -0500
>
i use these two lines of codes trying to get my table to autosave
>
its properties.
>
>
[testTable setAutosaveName: @"testTable"];
>
[testTable setAutosaveTableColumns: YES];
>
>
however i got the following exception:
>
>
Column identifiers used with NSTableView autosave feature must
>
conform to NSCoding protocol.
>
>
does that mean i'll have to subclass the table column?
No, it means you have used a column identifier that isn't a string or some
other NSCoding-compliant object.
The table has to be saved somewhere. That means the columns have to be
saved, and that means the column identifiers have to be saved. So use an
object that can be saved as an identifier. Most of the time, an NSString is
sufficient.
You can set a column's identifier in the IB pallete for the NSTableColumn.
Try that.
Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.