• 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
Re: Document not opened at launch? -- [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document not opened at launch? -- [SOLVED]


  • Subject: Re: Document not opened at launch? -- [SOLVED]
  • From: Mark Dawson <email@hidden>
  • Date: Wed, 26 Jul 2006 11:45:33 -0700

I tracked down what was causing the issue (not sure what's behind it, though)--before I called NSApplicationMain, I check for a condition, and (if true) put up a dialog.  In the release version of the program, I would quit after that dialog, but right now I was allowing execution to proceed.  Apparently that dialog (using StandardAlert, since Cocoa's windowing system isn't up yet) was mucking with the event system, "stealing" the open event.  Removing that dialog gets my "open" event.

Does anyone know why the StandardAlert would "steal" the open event?

Mark

>
>>On Jul 25, 2006, at 9:32 PM, Mark Dawson wrote:
>>> I seem to have lost the ability to open a document at launch--I
>>> have to click on the app a 2nd time for my main document to come
>>> up.  I added the "applicationShouldOpenUntitledFile:" method to my
>>> app controller, and it only gets call once I double click a 2nd
>>> time on my app.  I had been switching around my window controller
>>> nib, so I broke something.  However, I'm not sure where to look.
>>> It just doesn't appear that an initial "open doc" command is being
>>> sent.  Everything works for the "reopen" case?
>>>

 _______________________________________________
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

  • Follow-Ups:
    • Re: Document not opened at launch? -- [SOLVED]
      • From: Mark Dawson <email@hidden>
References: 
 >Document not opened at launch? (From: Mark Dawson <email@hidden>)
 >Re: Document not opened at launch? (From: Daniel Jalkut <email@hidden>)
 >Re: Document not opened at launch? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Assignment from incompatible pointer type. (Was: (no subject))
  • Previous by thread: Re: Document not opened at launch?
  • Next by thread: Re: Document not opened at launch? -- [SOLVED]
  • Index(es):
    • Date
    • Thread