thanks graham, i sent performSelectorOnMainThread from readFromURL & the message succeeded, but visually i got the same result: the window did not show until the document window showed. i fear apps may simply not show windows at this point in the load.
my syntax for the test: [self performSelectorOnMainThread:@selector(showReadHUD) withObject:nil waitUntilDone:YES]; i assume waitUntilDone:YES is the correct thing to do here. edward On Apr 23, 2014, at 8:20 PM, Graham Cox <graham....@bigpond.com> wrote: > > On 24 Apr 2014, at 10:06 am, edward taffel <etaf...@me.com> wrote: > >> at present, i’m finding it difficult to find a point, prior to NSDocument >> initializing autosaved documents, to show a progress window. everything >> above readFromURL is off the main thread & there is nothing in the >> application delegate protocol that precedes—so far as i’m aware. any >> thoughts here? >> > > > Design your progress stuff so that it can be initiated from any thread. It's > not a big problem - I use -performSelectorOnMainThread: etc. Then you can > insert code to establish progress anywhere that's convenient - usually at the > start of the work itself. > > --Graham > > _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com