On 7/2/12 7:20 PM, Todd Heberlein wrote:
I have a document-based application, and when it starts it tries to
automatically load previously opened documents (running on Lion). Is there a
way to disable this behavior in the program?


My problem is that the document loads/analyzes data sets, and some of the
very large ones can take up to 10 minutes to analyze. Sitting around waiting
10 minutes for the app to finish starting is a pain, especially when the user
just wants to quickly view a new, small data set.

If you analyze the data as part of document loading and you don't need support for previous SDKs have a look at

+ (BOOL)canConcurrentlyReadDocumentsOfType:(NSString *)typeName

in NSDocument

Regards
Markus
--
__________________________________________
Markus Spoettl


_______________________________________________

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

Reply via email to