Re: NSAttributedString - initWithURL
Re: NSAttributedString - initWithURL
- Subject: Re: NSAttributedString - initWithURL
- From: Scott Anguish <email@hidden>
- Date: Wed, 22 May 2002 02:52:07 -0400
not all the URL accepting methods will actually go out and fetch from
the web for you... It appears to be one of those cases..
So, to work around it...
testURL=[NSURL URLWithString:@"
http://www.stepwise.com/index.html"];
attrString = [[NSAttributedString alloc] initWithHTML:[testURL
resourceDataUsingCache:NO]
documentAttributes: NULL];
(see, downloading the data first)
On Tuesday, May 21, 2002, at 09:27 PM, Sebastian Frey wrote:
Hey all -
OK, I'm a total newbie (talkin' 2-3 days), standard disclaimers apply.
So here I am, playing around, and I want to have a little app that
fetches a web page and renders the HTML, as best it can using the native
Cocoa stuff. From what I gather, I need to get a NSAttributedString and
use that in a NSTextView.
_______________________________________________
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.