I am converting a JSON file to a plist using the new NSJSONSerialization class and NSPropertyListSerialization class. I manage to convert my JSON to a Plist without errors, but then, at my last step, when I go to write the plist to my desktop, the program crashes, but AFTER the Plist has been generated!

The exception is an NSInvalidArgumentException for the last method - i.e., plist (supposedly) does not respond to writeToFile:atomicallyencoding:error: See below how Mundi fixed it.
–
kalaraceyMar 18 '12 at 23:01

Actually, I just figured it out. NSData does not respond to writeToFile:atomically:encoding:error. That is an NSDictionary method. The NSData method is just writeToFile:atomically:. Am I supposed to delete the question if I have just answered it?
–
kalaraceyMar 18 '12 at 14:07

No, just check the tick mark above (below the number). I will adapt my answer for the benefit of others.
–
MundiMar 18 '12 at 14:10

Ok. But I don't have to change the return type of plist for it to still work. Is there a reason that I should? In the developer documentation, it says to give the object that is returned by NSPropertyListSerialization a type of id. They don't explicitly say that, but it's in the example that way.
–
kalaraceyMar 18 '12 at 23:00

If you show me the link to the example I might be able to tell you what's different, if you still want to pursue it.
–
MundiMar 28 '12 at 9:53