• 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: NSFileWrapper serializedRepresentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileWrapper serializedRepresentation


  • Subject: Re: NSFileWrapper serializedRepresentation
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 04 Apr 2016 20:04:45 -0700
  • Feedback-id: 167118m:167118agrif8a:167118svIQgX77NZ:SMTPCORP

On Apr 4, 2016, at 17:41 , Gerriet M. Denkmann <email@hidden> wrote:
>
> What are the alternatives?

What I had in mind is that you would construct a composite NSData object that contained the results of compressing each file’s content as sub-components. By compressing this yourself, you could (for example) choose a more aggressive compression technique, or one that’s optimized for the patterns in your data, perhaps, at the expense of processing time, since you’re trying to minimized OTA transmission times.

If the package format is only one level deep, then you just need to identify each sub-component (by index or by name, depending on how flexible the internal structure is). If there are multiple levels, you’ll need to describe the relationships as a tree structure. Either way, it’s basically a handful of file name strings.

That puts you in control of how much data you transfer. There’s only a handful of lines of code involved here, I suspect.

NSFileWrapper.serializedRepresentation does this for you, but I suspect the internal structure is described as NSURLs, and they’re bigger than plain strings, since they can carry additional information such as security scopes. As Graham suggested, some of this may be irrelevant to the iOS platform, but that’s the price you pay using the convenience method.

_______________________________________________

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


References: 
 >NSFileWrapper serializedRepresentation (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: NSFileWrapper serializedRepresentation (From: Jens Alfke <email@hidden>)
 >Re: NSFileWrapper serializedRepresentation (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: NSFileWrapper serializedRepresentation (From: Quincey Morris <email@hidden>)
 >Re: NSFileWrapper serializedRepresentation (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: UTI
  • Next by Date: Re: UTI
  • Previous by thread: Re: NSFileWrapper serializedRepresentation
  • Next by thread: Re: NSFileWrapper serializedRepresentation
  • Index(es):
    • Date
    • Thread