What should we do if file-opening takes a long time?
What should we do if file-opening takes a long time?
- Subject: What should we do if file-opening takes a long time?
- From: Daryle Walker <email@hidden>
- Date: Sat, 31 Dec 2016 03:52:12 -0500
Let’s assume we’re using a NSDocument-based application. If we’re opening a big file, like a gigabyte or more, does the system code automatically show a progress bar dialog? Or does the user look at a whole bunch of nothing (i.e. wondering if the app locked up)?
If the latter, I guess we would (eventually) implement a opening progress window ourselves. I’m thinking of a app-global window that contains a list. Each list item corresponds to an object of a NSOperation subclass; where the operation and list item have the same lifetime. The operation could have a NSProgress object that the list item tracks. (Hopefully NSProgress is sufficiently thread-safe.) Is that workable? Is there a better idea?
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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