• 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
Saving via NSCoder/dataRepresentationOfType without the '...typedstream...' prefixes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving via NSCoder/dataRepresentationOfType without the '...typedstream...' prefixes


  • Subject: Saving via NSCoder/dataRepresentationOfType without the '...typedstream...' prefixes
  • From: Bert Torfs <email@hidden>
  • Date: Thu, 26 May 2005 22:04:48 +0200

Hi all,

I am building a Cocoa interface on top of a C++ (PowerPlant) model. The model uses a stream (LStream) to write its data to a file. I created a new stream descendant that writes bytes to an NSData instance. This approach works but :
Cocoa adds headers to every serialized object with info on the object type. My model does not need this info to recreate itself (it already does a comparable thing) and this extra info breaks the downward compatibility I absolutely want.
Is there an easy way to have Cocoa/NSCoder/dataRepresentationOfType not to include the object info?


Thanks in advance,

Bert
_______________________________________________
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: reordering NSTableView elements
  • Next by Date: Accessing NSTableView cell information
  • Previous by thread: Re: Tree controller bindings and @sum question
  • Next by thread: Accessing NSTableView cell information
  • Index(es):
    • Date
    • Thread