Re: NSFileWrapper serializedRepresentation
Re: NSFileWrapper serializedRepresentation
- Subject: Re: NSFileWrapper serializedRepresentation
- From: Quincey Morris <email@hidden>
- Date: Mon, 04 Apr 2016 10:35:28 -0700
- Feedback-id: 167118m:167118agrif8a:167118svIQgX77NZ:SMTPCORP
On Apr 4, 2016, at 09:59 , Gerriet M. Denkmann <email@hidden> wrote:
>
> Both the Simulator and the OS X App compress the same folder (which resides on OS X).
You can’t really use a convenience API such as ‘serializedRepresentation’ and then complain it doesn’t optimize for your specific use case. Concise compression may not be the API’s highest priority.
A serialized NSFileWrapper for a package must contain a representation of the file system hierarchy, and it’s not unreasonable that this may be very different on the two platforms. Since this particular serialization is supposed to be useful for pasting too, there might well be more file metadata transferred, so that “pasted” files can be recreated properly. This could be voluminous on OS X.
Incidentally, the OS X documentation for NSFileContentsPboardType, serializedRepresentation’s data format, on says not to use it after 10.6.
It really sounds like you need to construct your own data representation, optimized for size if that’s what’s important to you. Or is NSFileContentsPboardType being demanded by something else?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden