• 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
NSTextStorage vs HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextStorage vs HTML


  • Subject: NSTextStorage vs HTML
  • From: Kirk Kerekes <email@hidden>
  • Date: Mon, 20 May 2002 18:43:32 -0500

OK, back to the well-of-wisdom again.

Anybody know why this sequence works, sort of:

urlData = [NSData dataWithContentsOfURL:url];
textStorage = [[NSTextStorage alloc] initWithHTML: urlData documentAttributes:&attributes];

But this seemingly equivalent one, using the same url (hard-coded), does not:

textStorage = [[NSTextStorage alloc] initWithURL:url documentAttributes: &attributes];
_______________________________________________
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.
  • Follow-Ups:
    • Frameworks in HOME/Library, why?
      • From: Paul Cezanne <email@hidden>
  • Prev by Date: Drawing from CFM plugin while mouse dragging - How?
  • Next by Date: Cocoa Document-Based Applications
  • Previous by thread: Re: repost: Drawing from CFM plugin while mouse dragging - How?
  • Next by thread: Frameworks in HOME/Library, why?
  • Index(es):
    • Date
    • Thread