• 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: Code to convert NSDictionary to binary plist file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code to convert NSDictionary to binary plist file?


  • Subject: Re: Code to convert NSDictionary to binary plist file?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 3 Jun 2008 21:47:43 +0200


Le 3 juin 08 à 21:24, David Hoerl a écrit :

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


See the NSPropertyListSerialization class.


_______________________________________________

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: 
 >Code to convert NSDictionary to binary plist file? (From: David Hoerl <email@hidden>)

  • Prev by Date: Re: Code to convert NSDictionary to binary plist file?
  • Next by Date: NSTextView programmatically apply smart quotes?
  • Previous by thread: Re: Code to convert NSDictionary to binary plist file?
  • Next by thread: Design Patterns -- Views
  • Index(es):
    • Date
    • Thread