TahDoodle writing error using NSPropertyListSerialization


Using this line gives warnings in the compiler:

propertyListWithData: expects a NSData object but obviously in the example an NSMutableArray is passed as input:
//pack our todoItems into an NSData object
NSData *data = [NSPropertyListSerialization propertyListWithData:todoItems options:0 format:NSPropertyListXMLFormat_v1_0 error];

Is this something that has changed in the last x-code version?


Anyone an idea… this is soooo frustrating.



An in depth study in the Developer documentation indeed showed this Class has been changed.
This is the new call:
//pack our todoItems into an NSData object
NSData *data = [NSPropertyListSerialization dataFromPropertyList:todoItems format:NSPropertyListXMLFormat_v1_0 errorDescription:NULL];


Its better if you cut and paste your entire code, because its likely your bug is not where you expect it to be.