• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to display errors/warnings at app startup?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to display errors/warnings at app startup?


  • Subject: How to display errors/warnings at app startup?
  • From: Scott Lehman <email@hidden>
  • Date: Sat, 31 Mar 2007 11:20:50 -0700 (PDT)

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:

This email sent to email@hidden

  • Prev by Date: Core Data: save to multiple files?
  • Next by Date: Re: String manipulation with Regex
  • Previous by thread: Core Data: save to multiple files?
  • Next by thread: Re: How to display errors/warnings at app startup?
  • Index(es):
    • Date
    • Thread