Re: showing load progress for autosaved documents
Re: showing load progress for autosaved documents
- Subject: Re: showing load progress for autosaved documents
- From: Graham Cox <email@hidden>
- Date: Thu, 24 Apr 2014 10:20:22 +1000
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