Re: Making Scripting Addition with Cocoa
Re: Making Scripting Addition with Cocoa
- Subject: Re: Making Scripting Addition with Cocoa
- From: matt neuburg <email@hidden>
- Date: Mon, 28 Jul 2003 12:44:43 -0700
On Mon, 28 Jul 2003 17:52:02 +0200, Lorenzo <email@hidden> said:
>
Hi,
>
I have a friend developing AppleScript code only.
>
Sometimes he asks me to build a Scripting Addition to increase the speed of
>
his routines. And in MacOS 9 I did that.
>
>
Now I would like to do the same with Cocoa. I already know how to pass him
>
the Cocoa code so he can call my methods using callMethod. But I would like
>
to give his something already compiled like a Scripting Addition or a
>
library he can include and call in his AppleScript code.
>
>
Do you know some simple way to do that?
(1) Don't write a scripting addition. Scripting additions are the work of the devil.
Write a scriptable app.
(2) Okay, I can see that I failed to convice you in the previous paragraph. So, to write
a scripting addition, do it just as you did before. You can't write a scripting addition
in pure Cocoa; you must link against Carbon. There's a template at Chris Nebel's site.
Just fill in your code:
http://homepage.mac.com/c.nebel
m.
PS Whatever you do, don't watch the Monty Python movie.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.