• 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: Get RTF from web and show in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get RTF from web and show in NSTextView


  • Subject: Re: Get RTF from web and show in NSTextView
  • From: Manfred Lippert <email@hidden>
  • Date: Wed, 23 Apr 2003 22:07:51 +0200

Hello how can I download a RTF file from my Server and show it in a NSTextView

something like this should work:

NSData *myData = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://myserver.com/example.rtf";]];
[myTextView replaceCharactersInRange:NSMakeRange([[myTextView string] length], 0) withRTF:myData];

Hope this helps,
Mani
_______________________________________________
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: 
 >Get RTF from web and show in NSTextView (From: Chad Eckles <email@hidden>)

  • Prev by Date: Excessive NSImage caching (or leaking)
  • Next by Date: Can a ScreenSaverView quit itself?
  • Previous by thread: Get RTF from web and show in NSTextView
  • Next by thread: What window is the mouse over?
  • Index(es):
    • Date
    • Thread