Re: showing load progress for autosaved documents
Re: showing load progress for autosaved documents
- Subject: Re: showing load progress for autosaved documents
- From: edward taffel <email@hidden>
- Date: Thu, 24 Apr 2014 11:59:37 -0400
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 <email@hidden> wrote:
>
> On 24 Apr 2014, at 10:06 am, edward taffel <email@hidden> 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 (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