One Quickie


Serializing with TouchJSON (JSON->General)
    #import "CJSONSerializer.h"

    NSArray *allSongs = [self allSongs];
    NSString *jsonString = [[CJSONSerializer serializer] serializeObject: allSongs];
    NSData *data = [jsonString dataUsingEncoding: NSUTF8StringEncoding];
    // write |data| to a file, send over the network, etc



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

webmonster@borkware.com