Re: Get RTF from web and show in NSTextView
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.