• 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
NSCoder and limited file formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCoder and limited file formats


  • Subject: NSCoder and limited file formats
  • From: James Coole <email@hidden>
  • Date: Thu, 21 Oct 2004 00:19:01 -0400

I'd like to subclass NSCoder to make archivers and unarchivers that target a file format that only supports a subset of the data types available in ObjC and certain foundation kit objects under special conditions but does not support encoding arbitrary data. My problem is that Apple's documentation says subclasses must override the en/decodeObjCType:at: and en/decodeDataObject: methods. How should my subclasses handle requests to en/decode ObjC types or objects their targeted file format does not support? I would consider paralleling NSCoder and NSCoding but that would require writing categories to implement my equivalents of initWithCoder: and encodeWithCoder: on the foundation kit classes the file format does support which is something I'd rather not do and there are probably other problems I can't think of at the moment. Any help would be appreciated.

- James

_______________________________________________
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
  • Prev by Date: Re: how to add 'file type selection popup menu' in NSSavePanel
  • Next by Date: Re: Metal window pattern color
  • Previous by thread: Re: Currency Converter Tutorial Problems
  • Next by thread: Power Night (geeknights) first meeting / planning meeting
  • Index(es):
    • Date
    • Thread