Code to convert NSDictionary to binary plist file?
Code to convert NSDictionary to binary plist file?
- Subject: Code to convert NSDictionary to binary plist file?
- From: David Hoerl <email@hidden>
- Date: Tue, 03 Jun 2008 15:24:34 -0400
I'm using [NSDictionary writeToFile:...] to save a fairly large
dictionary as a text plist file. I found a quick and dirty hack to
convert it into a binary formatted file:
strcpy(command, "/usr/bin/plutil -convert binary1 ");
strcat(command, fileName);
ret = system(command);
Yeah, I know - a real groaner - but I was in a hurry.
Am I missing something obvious? Is there code out there that can take
a dictionary and save it as a binary plist?
Thanks,
David
_______________________________________________
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