Re: Document not opened at launch? -- [SOLVED]
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