• 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
Re: Cocoa & Apple Event handling...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa & Apple Event handling...


  • Subject: Re: Cocoa & Apple Event handling...
  • From: Glen Simmons <email@hidden>
  • Date: Thu, 28 Jun 2001 12:56:57 -0500

An alternative would be to make your application scriptable. AppleScript works through the same AppleEvents that would be used for IAC. And, believe it or not, you get basic scripting almost for free if your app is designed "properly". You have to implement a scriptSuite and scriptTerminology file and you have to add a key to your App settings in your target (NSAppleScript = YES, or something like that). A side benefit is that you can test your AE interface with Script Editor.

Look at the stuff in /Developer/Documentation/Cocoa/ProgrammingTopics/Scripting. Also, Sketch is a good example. The source is in /Developer/Examples/AppKit/Sketch.

Glen


On Wednesday, June 27, 2001, at 06:15 PM, Brian Webster wrote:

On Wednesday, June 27, 2001, at 04:57 PM, cocoa-dev-
email@hidden wrote:

Can anyone provide any pointers to docs for AppleEvent handling in
Cocoa apps? I haven't been able to track down much of anything...

Well, there's not much Cocoa-specific documentation on handling Apple Events as of yet. The main class that you want to look at will be NSAppleEventManager, along with NSAppleEventDescriptor. For a description of how Apple Events are handled by an app, you can read the docs at <http://developer.apple.com/techpubs/mac/IAC/IAC-2.html>. The explanations are all about the Carbon version of the API, but the basic concepts are still useful.

--
Brian Webster
email@hidden
http://www.owlnet.rice.edu/~bwebster
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Cocoa & Apple Event handling... (From: Brian Webster <email@hidden>)

  • Prev by Date: Re: NSBeginAlertSheet question
  • Next by Date: Re: Sit on it and rotate ??
  • Previous by thread: Re: Cocoa & Apple Event handling...
  • Next by thread: Frantic and Frustrated {Additional to previous}
  • Index(es):
    • Date
    • Thread