Re: [SOLVED] Code to convert NSDictionary to binary plist file?

2008-06-04 Thread Jean-Daniel Dupas
Le 4 juin 08 à 04:13, Ken Thomases a écrit : On Jun 3, 2008, at 8:49 PM, David Hoerl wrote: ret = [manager createFileAtPath:@/tmp/binary.plist contents:plist attributes:nil]; You can also do [plist writeToFile:...] to write the data object out. There's nothing wrong with what you

[SOLVED] Code to convert NSDictionary to binary plist file?

2008-06-03 Thread David Hoerl
I never did get a pointers to code to convert a NSDictionary to a binary formatted plist, but did get pointers to look at NSPropertyListSerialization - something I had already (mis)read a few times. The description for the dataFromPropertyList class method seems confusing if you don't

Re: [SOLVED] Code to convert NSDictionary to binary plist file?

2008-06-03 Thread Ken Thomases
On Jun 3, 2008, at 8:49 PM, David Hoerl wrote: ret = [manager createFileAtPath:@/tmp/binary.plist contents:plist attributes:nil]; You can also do [plist writeToFile:...] to write the data object out. There's nothing wrong with what you wrote, but since you were already familiar with