• 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: NSAttributedString - initWithURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSAttributedString - initWithURL (From: Sebastian Frey <email@hidden>)

  • Prev by Date: Re: Kill Applications
  • Next by Date: Disabling anti-aliasing in an NSTextView - is it possible?
  • Previous by thread: Re: NSAttributedString - initWithURL
  • Next by thread: re:Build Log
  • Index(es):
    • Date
    • Thread