• 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
Problem with starting up by dbl-clking a document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with starting up by dbl-clking a document


  • Subject: Problem with starting up by dbl-clking a document
  • From: Robert Martin <email@hidden>
  • Date: Fri, 19 Aug 2005 12:37:45 -0400

My app does some environment checking when it starts up to ensure that necessary support files exist. If they don't, it puts up an alert asking the user to locate them. It has to do this before opening a document since the info is required to validate the document.

If a user starts up the app by double clicking one of my app's documents, everything works fine and the NSDocument opens up properly if no alert is necessary.

But if the alert comes up, the app finishes loading properly but doesn't trigger any document opening. It just seems to forget what it was trying to do. None of NSDocument's init methods are called. The user has to double click again, or open via the menu.

Using NSLog, the trail goes cold after applicationDidFinishLaunching.

Can anyone point me in the right direction for solving this? If the user provides a valid location to the support files in the alert, there must be some way to continue the document opening steps.

Rob _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: nstoolbaritem coordinates?
  • Next by Date: Re: nstoolbaritem coordinates?
  • Previous by thread: Re: nstoolbaritem coordinates?
  • Next by thread: add help button to presentError: alert?
  • Index(es):
    • Date
    • Thread