• 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: autosave table column problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >autosave table column problem (From: "Tony" <email@hidden>)

  • Prev by Date: Re: OT: Web Objects -- Anybody using it?
  • Next by Date: NSMovie Sound Bug? Workaround?
  • Previous by thread: autosave table column problem
  • Next by thread: OFRegularExpression escape character syntax?
  • Index(es):
    • Date
    • Thread