Saving via NSCoder/dataRepresentationOfType without the '...typedstream...' prefixes
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