One Quickie


Putting an NSXMLDocument into a text view (NSXML->General)
    NSData *blah = [xmldocument XMLDataWithOptions: NSXMLNodePrettyPrint];
    NSString *snork = [[NSString alloc] initWithData: blah
                                        encoding: NSUTF8StringEncoding];
    NSAttributedString *arrrgh;
    arrrgh = [[NSAttributedString alloc] initWithString: snork];

    [[xmlTextView textStorage]
        setAttributedString: [arrrgh autorelease]];



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

webmonster@borkware.com