Re: NSArchiver and MySQL
Re: NSArchiver and MySQL
- Subject: Re: NSArchiver and MySQL
- From: Mike Abdullah <email@hidden>
- Date: Mon, 3 Mar 2008 18:21:33 +0000
Relying on -description would almost certainly be a bad idea as it
might change in the future. Also, it will take up a lot of room. I'd
recommend:
http://www.dribin.org/dave/blog/archives/2006/03/12/base64_cocoa/
Mike.
On 3 Mar 2008, at 18:08, Ben Einstein wrote:
What's the best way to archive/unarchive an NSData object created
from NSArchiver to a MySQL (or any other) database?
I was thinking:
[archivedData description] for archiving and
[archivedString dataUsingEncoding:someEncoding] for unarchiving. Not
sure if that will work.
Maybe [NSString stringWithCharacters:[archivedData byes] length:
[archivedData length]] would be better? Am I heading down a
completely flawed path? Speed issues?
Any help would be greatly appreciated.
_______________________________________________
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
_______________________________________________
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