• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving a RTFD-file with NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Saving a RTFD-file with NSAttributedString (From: Tae-Won Ha <email@hidden>)

  • Prev by Date: Transparent Button
  • Next by Date: Re: Speed of Quartz (was: optimizing compilers)
  • Previous by thread: Saving a RTFD-file with NSAttributedString
  • Next by thread: Re: Saving a RTFD-file with NSAttributedString
  • Index(es):
    • Date
    • Thread