• 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: Adding scripting support to Cocoa applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding scripting support to Cocoa applications


  • Subject: Re: Adding scripting support to Cocoa applications
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 10 Mar 2003 13:30:56 -0600

At 9:03 AM -0800 3/10/03, email@hidden wrote:
I see. The answer to all of your questions is a big resounding NO, so I guess
that is why it is not working. Where is all this stuff clearly explained, stuff
that is mandatory, and stuff that is optional? Definitely not in Apple's docs
:-(. For example, I had not even heard of the delegate method...

A lot of it is mentioned in the Apple documentation in one place or another. I spent a couple hours reading all the stuff they had on scripting several days ago, and then read through a bunch of the Sketch source code. Then I created a simple application and added scripting support to it, to teach myself how it all fit together.

I also went back over the notes I took during the Cocoa Scripting session at WWDC.

Also, a lot of the scripting stuff is conceptually similar to things Apple had in the Enterprise Objects Framework, which I have a bit of experience with.

You mention SuiteModeler. I have been looking at it too. Is it worth the 25
bucks? Will it spare me this pain?

Thanks a lot for your tips!

Yes, I definitely think Suite Modeler is worth the $25. It includes lots of good documentation - if nothing else, download it and read the included documentation to get a better idea of how scripting and Cocoa interact.

Adding support for scripting to a Cocoa application seems difficult at first, but once you get the hang of it you'll wonder what the problem was. :) (And if you've never thought about implementing scripting in a Carbon/Classic application before, count yourself lucky. AppleScript support used to be *extremely* difficult to add to an application. Weeks to months worth of work, literally. Cocoa does almost all of that work for you.)

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Grep Support in Cocoa
  • Next by Date: RE: Non functioning IBOutlet
  • Previous by thread: Re: Adding scripting support to Cocoa applications
  • Next by thread: Re: Adding scripting support to Cocoa applications
  • Index(es):
    • Date
    • Thread