• 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: NSData from NSArchiver and plist Utility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData from NSArchiver and plist Utility


  • Subject: Re: NSData from NSArchiver and plist Utility
  • From: Trygve Inda <email@hidden>
  • Date: Wed, 11 Jun 2008 17:23:33 +0000
  • Thread-topic: NSData from NSArchiver and plist Utility

>> myData = [NSArchiver archivedDataWithRootObject:(NSArray*)myArray];
>>
>> Will something archived with this under 10.5 be readable in 10.4?
>>
>> This seems like something an existing utility should be able to
>> do... Is
>> there something that does this? Or do I need to write a simple
>> custom app to
>> prepare my plist file for uploading?


> Hmm.  It's not clear to me that an array will be stored more
> efficiently as a data object.
>
> If your plist is in XML format, data objects are stored in string form
> as a series of hex digits.  This greatly expands the space needed,
> probably more than you could recover with zlib.

> Cheers,
> Ken
>

One other reason to use NSData is to hide certain information from casual
users... though in my testing it is smaller as well which is a nice side
effect.

Just trying to be sure that if I use archivedDataWithRootObject on 10.5 and
write it to disk, then read it with 10.4's unarchivedDataWithRootObject,
that all will be ok.

Trygve


_______________________________________________

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: 
 >Re: NSData from NSArchiver and plist Utility (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Link to zlib
  • Next by Date: Re: Link to zlib
  • Previous by thread: Re: NSData from NSArchiver and plist Utility
  • Next by thread: Re: NSData from NSArchiver and plist Utility
  • Index(es):
    • Date
    • Thread