[comp.sys.mac.programmer] Receiving Required AppleEvents

mystone@mondo.engin.umich.edu (Dean Yu) (12/14/90)

  I was tinkering with the required AppleEvents last night, and I noticed
something odd.  In the old days (ie, under 6.x MultiFinder) when you double
click on a document created by your application when the application is already
open, your appliation comes to the front, and an Open is faked.  This is also
true under 7.0 if you're application isn't AppleEvent aware.
  If you do have the highLevelEventAware and localAndRemoteEvents bits set
in your 'SIZE' resource however, the Finder passes you your document list
via the 'odoc' AppleEvent instead of through the AppParmHandle low memory
global.  The thing that I noticed was that if the application was already
open, and I double-clicked on one of my documents, the Finder does send the
'odoc' event, but my application doesn't come to the front.  I don't think that
this is correct.
  Has anyone else noticed this, or am I just off my rocker and overlooking
something obvious?  (It could very well be both, but that's besides the
point...)

_______________________________________________________________________________
Dean Yu                            | E-mail:    mystone@mondo.engin.umich.edu
Patches 'R' Us                     | Real-mail: Dean Yu
A Division of Cyberite Systems     |            909 Church St Apt C
                                   |            Ann Arbor, MI 48104
I'm not the voice of Reason, much  | Phone:     313 662-4073
    less the voice of Cyberite.    |            313 662-4163
-------------------------------------------------------------------------------