Re: using AppKit additions in background threads
Re: using AppKit additions in background threads
- Subject: Re: using AppKit additions in background threads
- From: Martin Wierschin <email@hidden>
- Date: Wed, 07 Sep 2011 15:04:40 -0700
> I've found that NSAttributedString's initWithData:... method does a good job of the conversion
...
> One drawback to my approach is that I can't get the web page title using NSAttributesString.
When you init the NSAttributedString, you can pass in a pointer to a document attributes dictionary. Upon return, inspect the dictionary for the NSTitleDocumentAttribute key. See:
http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSAttributedString_AppKitAdditions/Reference/Reference.html#//apple_ref/doc/constant_group/Document_Attributes
~Martin
_______________________________________________
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