Saving a RTFD-file with NSAttributedString

taewon

Registered
Hi! I'm a very newbie and got a simple question:

NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:mad:""];
[[attrString RTFDFromRange:NSMakeRange(0, [attrString length]) documentAttributes:nil] writeToFile:aPath atomically:YES];


Why does that not work?
(Error Msg: NSAttributedString does not respond to RTFDFromRange:documentAttributes:)

Thanx in advance. :)
 
Back
Top