Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending AppleEvent ansr



I am porting an application, Tansa, from Carbon to Cocoa.
The application communicates with another application (InCopy) via AppleEvents.
When running my application from Xcode, everything works fine, but running it from Finder, the other application hangs.
I have traced the AppleEvents in Terminal, and the difference is that I do not get the second event (aevt/ansr) when running my Cocoa application. Do I have to do anything in the Cocoa application to send this AppleEvent back to the other application?


When running my application from Xcode, I can see both messages in the Run Log.

Ivan

------oo start of event oo------
{ 1 } 'aevt':  TANS/gana (i386){
          return id: 687800323 (0x28ff0003)
     transaction id: 0 (0x0)
  interaction level: 112 (0x70)
     reply required: 1 (0x1)
             remote: 0 (0x0)
      for recording: 0 (0x0)
  target:
    { 1 } 'psn ':  8 bytes {
      { 0x0, 0x6d40001 } (InCopy)
    }
  fEventSourcePSN: { 0x0,0x6d40001 } (InCopy)
  optional attributes:
    < empty record >
  event data:
    { 1 } 'aevt':  - 1 items {
      key '----' -
        { 1 } 'TEXT':  12 bytes {
          "Adobe InCopy"
        }
    }
}

------oo  end of event  oo------
AE2000 (10495): Received an event reply:
------oo start of event oo------
{ 1 } 'aevt':  aevt/ansr (i386){
          return id: 687800323 (0x28ff0003)
     transaction id: 0 (0x0)
  interaction level: 112 (0x70)
     reply required: 0 (0x0)
             remote: 0 (0x0)
      for recording: 0 (0x0)
  target:
    { 1 } 'psn ':  8 bytes {
      { 0x0, 0x6d00001 } (Tansa)
    }
  fEventSourcePSN: { 0x0,0x6d00001 } (Tansa)
  optional attributes:
    < empty record >
  event data:
    { 1 } 'aevt':  - 0 items {
    }
}


Ivan _______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.