i've "fixed" this by installing an AE handler before startup, trapping the dropped events, then re-sending them to the NSApp after startup has completed (and removing the intrim handler, since NSApp is up and handling them by then)
On Dec 1, 2009, at 12:25 PM, M Pulis wrote: > Tried AE Monitor (Oxalyn Software)? > > Oxalyn Software > Æ Monitor > > > Gary > > On Dec 1, 2009, at 11:31 AM, David M. Cotter wrote: > >>>> recently our app has stopped responding to "odoc" apple events on startup. >>>> that is, if the user double clicks a document of our app, and this causes >>>> the >>>> app to launch, then the document is not opened. (cnr when app is already >>>> launched). same story dropping the doc icon onto the app icon (same code >>>> path). >> >>> Apparently this problem is widespread, as reported in this Macfixit article: >>> >>> http://reviews.cnet.com/8301-13727_7-10401605-263.html >> >> this is not the issue i'm having. double clicking the document always >> launches my application. so it is "bound" correctly. the problem is that >> on startup my app is not receiving the "odoc" apple event, or it is being >> eaten at an inopportune time. if the app is already running, then i do >> receive the event and the document opens. >> >>> Are you certain that odoc events are even being sent? >> no i am not >> >>> It's pretty easy to find out using Apple event debugging. >> and how do you do that? >> >> i have run with AEDebug / Send / Receives set to 1 and i see the log of the >> events. but i can only do that when launching from the command line (no >> double click) or from Xcode (again no double click) so there is no way to >> test my problem with these debug vars >> set._______________________________________________ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> Please 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/toothpic%40fastq.com >> >> This email sent to tooth...@fastq.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com