• 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: Problem with RTF and NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with RTF and NSTextView


  • Subject: Re: Problem with RTF and NSTextView
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 14 Nov 2003 12:02:45 -0800

On Nov 14, 2003, at 11:16 AM, Brant Sears wrote:

I have an NSTextView and I am trying to invoke writeRTFDToFile: atomically:
method on this view.

So, I'm calling:
[myTextView writeRTFDToFile:@"/Users/me/desktop/foo.rtf" atomically: YES];

The result is that I get a folder called "foo.rtf" on my desktop that
contains a file called "TXT.rtf". Why does it force this stupid name for the
rtf file? Am I doing something wrong here?

Yes. There is a difference between RTF and RTFD. RTF is a single file, RTFD is a package containing an RTF file (as TXT.rtf) plus attachments. If you want RTF, use the methods for RTF rather than those for RTFD. If you want RTFD, use the .rtfd extension.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Problem with RTF and NSTextView (From: Brant Sears <email@hidden>)

  • Prev by Date: Project Builder: Possible to create favorite projects?
  • Next by Date: mail format
  • Previous by thread: Problem with RTF and NSTextView
  • Next by thread: Re: Problem with RTF and NSTextView
  • Index(es):
    • Date
    • Thread