One Quickie


Saving property lists as XML (XML->General)
You can save any of the "property list" classes (NSDictionary, NSArray,NSNumber, NSString, NSData) as XML like this:
    NSData *data;
    data = [NSPropertyListSerialization
               dataFromPropertyList: notes
               format: NSPropertyListXMLFormat_v1_0
               errorDescription: nil];
Then write out the data using NSFileManager, or whatever other mechanism you wish.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com