On Sep 6, 2011, at 9:20 AM, Michael Thon wrote: > I'm importing data to an NSAttributedString using the method: > initWithData:options:documentAttributes:error: which is an AppKit addition to > NSAttributedString. I'm doing this in an NSOperation running on a separate > thread, and what I see is that the UI of the app becomes unresponsive while > this method is called. It doesn't happen all the time, but presumably the > hang is related to the size of the data being converted.
What kind of documents are you importing? If this involves HTML, then it will use WebKit to do part of the work, and WebKit runs exclusively on the main thread. The AppKit methods can be invoked on arbitrary threads, but they will transfer WebKit work to the main thread as needed. Douglas Davidson _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com