• 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
Sending AppleEvent ansr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending AppleEvent ansr


  • Subject: Sending AppleEvent ansr
  • From: Ivan C Myrvold <email@hidden>
  • Date: Wed, 24 Oct 2007 14:19:42 +0200

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sending AppleEvent ansr
      • From: Ivan C Myrvold <email@hidden>
  • Prev by Date: Re: Best practice for multiple NSWindowControllers on a document?
  • Next by Date: Troublesome app when scaling it up, how to proceed?
  • Previous by thread: Re: Disregard Binding to NSArrayController selection
  • Next by thread: Re: Sending AppleEvent ansr
  • Index(es):
    • Date
    • Thread