One Quickie


Simple archiving (NSCoder->General)
To archive a single object (which can be something like an array or dictionary that contains other object), such as saving your document, do:
- (NSData *) dataRepresentationOfType: (NSString *) aType
{
    NSData *data;
    data = [NSArchiver archivedDataWithRootObject: group];

    return (data);

} // dataRepresentationOfType



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

webmonster@borkware.com