On 9 Feb 2012, at 20:23, Gilles Celli wrote: > Mike, Kyle, > > Thanks for the quick answers! > > Yes I'm targeting Mac OS X 10.6 and later so > canConcurrentlyReadDocumentsOfType: is a welcome addition, I completely > forgot that. > > Strangely if I put the method canConcurrentlyReadDocumentsOfType: inside my > NSDocument I get a warning when trying to open a document (It seems to be a > QuickLook error ?) on Mac OS X 10.7.3: > > [QL] QLError(): +[QLSeamlessDocumentOpener seamlessDocumentOpenerForURL:] > should only be called in the main thread
Maybe try setting a breakpoint on QLError to see when it gets called? > > Now for the cancel question: If I take the more traditional approach to > cancel the operation inside readFromURL, should I fire up a new thread to > check the flag's status ? What would this gain you? You set the cancel flag on the main thread. And you have a worker thread for reading the document supplied by the system, so why add another thread to the mix? _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
