• 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: using AppKit additions in background threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >using AppKit additions in background threads (From: Michael Thon <email@hidden>)
 >Re: using AppKit additions in background threads (From: Douglas Davidson <email@hidden>)
 >Re: using AppKit additions in background threads (From: Michael Thon <email@hidden>)
 >Re: using AppKit additions in background threads (From: Jens Alfke <email@hidden>)
 >Re: using AppKit additions in background threads (From: Douglas Davidson <email@hidden>)
 >Re: using AppKit additions in background threads (From: Michael Thon <email@hidden>)

  • Prev by Date: Re: test on device using company registration
  • Next by Date: Re: SecKeyRef object without KeyChain
  • Previous by thread: Re: using AppKit additions in background threads
  • Next by thread: Set a view's delegate using IB
  • Index(es):
    • Date
    • Thread