Re: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
Re: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
- Subject: Re: [NSMutableAttributedString] How is NSBaseURLDocumentOption supposed to work?
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 28 Jun 2008 13:37:28 +0200
On Jun 26, 2008, at 12:38 AM, Stéphane Sudre wrote:
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?
OK, someone kindly pointed me off-list that I was using a NSString
instead of a NSURL.
I'm still wondering which URL is supposed to be used:
- the document itself
or
- the parent folder of the document
?
_______________________________________________
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