Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to display errors/warnings at app startup?



Hi,

I've got a Cocoa app that needs to perform
initialization (loading plug-ins mainly) at startup
and before a document is created.  The docs are pretty
clear - I should do this in
applicationWillFinishLaunching:.  But I want to
display a dialog or alert when there's a problem in
the initialization and that's where I've run into a
problem.

Simply calling NSRunAlertPanel seemed like a good
choice, but while the modal loop is running, the event
to open a document is processed.  I experimented with
some performSelector: methods, to display the dialog,
but then I seemed to miss the event to open the
document completely.

Is there a way to display a dialog/alert during
applicationWillFinishLaunching: and not have a
document open event processed until it returns?

The only idea I have right now is to queue up all the
errors and then process them in the openFile methods,
but I'm guessing there's a better way.

Thanks,

Scott


 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.