home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14562 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!darwin.sura.net!mips!news.cs.indiana.edu!johnl@spinner.cs.indiana.edu
  3. From: "John Lacey" <johnl@spinner.cs.indiana.edu>
  4. Subject: Apple events and Think C
  5. Message-ID: <1992Aug26.201742.4110@news.cs.indiana.edu>
  6. Sender: root@news.cs.indiana.edu (Operator)
  7. Organization: Computer Science, Indiana University
  8. Date: Wed, 26 Aug 92 15:17:25 EST
  9. X-Mailer: ELM [version 2.3 PL11]
  10. Lines: 18
  11.  
  12. I am trying to get a simple app with Apple events going, but I can't
  13. even get by the Open Application event.
  14.  
  15. Problem #1: Using the code snippets from IM VI, the call to
  16. AEGetAttributePtr returns errAENotAEDesc.  The only thing I did was
  17. call AEProcessAppleEvent, and call AEGetAttributePtr first thing in my
  18. handler.
  19.  
  20. Problem #2: Is there any way to debug Apple event handlers in Think C
  21. 5.0?  If I run under Think C, AEProcessAppleEvent returns
  22. noOutstandingHLE.  No such problems with the built application.
  23.  
  24. What am I missing, and is there a good reference for this, or some
  25. example code?
  26.  
  27. -- 
  28. John Lacey                   `Everything must end; meanwhile we
  29.                               must amuse ourselves.' --Voltaire
  30.