Re: What about QLSeamlessDocumentOpener
Re: What about QLSeamlessDocumentOpener
- Subject: Re: What about QLSeamlessDocumentOpener
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 25 Nov 2012 23:02:51 +0700
On 25 Nov 2012, at 19:21, Graham Cox <email@hidden> wrote:
>
> On 25/11/2012, at 10:21 PM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>> What does this mean? What can I do to get rid of these warnings?
>
> Short answer: don't call -openUntitledDocument... on a thread other than main.
>
You are right. I replaced:
[ self makeNewDocument] with:
[ self performSelectorOnMainThread: @selector(makeNewDocument) withObject: nil waitUntilDone: NO ];
and all is fine.
And indeed:
NSLog(@"%s isMainThread %u",__FUNCTION__, [NSThread isMainThread]); // prints 0
Thanks a lot.
Kind regards,
Gerriet.
_______________________________________________
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