NSData from NSArchiver and plist Utility
NSData from NSArchiver and plist Utility
- Subject: NSData from NSArchiver and plist Utility
- From: Trygve Inda <email@hidden>
- Date: Wed, 11 Jun 2008 16:35:44 +0000
- Thread-topic: NSData from NSArchiver and plist Utility
I have a plist that I will store on a server and my app will retrieve it.
I'd like to archive one of the keys (an array) into an NSData and possibly
compress it.... Makes for less storage and thus lower bandwidth for my
server.
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?
E.g. I should be able to control click on my array in Plist Utility and
choose "Archive to NSData"
Once it is NSData, I might like to use zlib to build a compressed version of
the data.
Thanks,
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