On 25 Nov 2012, at 19:21, Graham Cox <[email protected]> wrote:
> > On 25/11/2012, at 10:21 PM, "Gerriet M. Denkmann" <[email protected]> > 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 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]
