• 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
[NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?


  • Subject: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 26 Jun 2008 00:38:07 +0200

When reading a html document into a NSMutableAttributedString (or NSTextStorage) using

- (BOOL)readFromURL:(NSURL *)url options:(NSDictionary *)options documentAttributes:(NSDictionary **)dict,

what value are you supposed to set for NSBaseURLDocumentOption?

When I test this with HTML files that use a separate file referenced by a relative path, it causes an exception in NSPathStore2 absoluteURL if I set the NSBaseURLDocumentOption of the parent folder of url (as NSURL).

This is done on Mac OS X 10.4.11.

Is CSS not supported?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Adding a new type of NSButton
  • Next by Date: Auto pop-up list from State field in Address book database
  • Previous by thread: Re: NSString help!
  • Next by thread: Re: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
  • Index(es):
    • Date
    • Thread