Re: Saving a RTFD-file with NSAttributedString
Re: Saving a RTFD-file with NSAttributedString
- Subject: Re: Saving a RTFD-file with NSAttributedString
- From: Matthew Formica <email@hidden>
- Date: Mon, 04 Feb 2002 12:50:46 -0800
It writes out a file for me. Make sure that your path you attempt to write
to is a valid path.
- Matthew
On 2/2/02 1:15 PM, "Tae-Won Ha" <email@hidden> wrote:
>
Hi! I'm a very newbie and got a simple question:
>
>
NSAttributedString *attrString = [[NSAttributedString alloc]
>
initWithString:@""];
>
[[attrString RTFDFromRange:NSMakeRange(0, [attrString length])
>
documentAttributes:nil] writeToFile:aPath atomically:YES];
>
>
Why does that not work?
>
>
Thanx in advance. =)
--
Matthew Formica
DTS Engineer - Developer Tools and Cocoa
Apple Computer, Inc.
email@hidden
Mac OS X Development Tools:
http://developer.apple.com/tools/
Project Builder on the web:
http://developer.apple.com/tools/projectbuilder/
Project Builder FAQ:
http://developer.apple.com/tools/projectbuilder/faq.html
Cocoa docs on the web:
http://developer.apple.com/techpubs/macosx/Cocoa/CocoaTopics.html
Cocoa sample code:
http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm