Mac OS 9 Lives

Mac OS 9 Discussion => Development & Programming => Topic started by: OS923 on July 05, 2018, 06:35:08 AM

Title: PPC scripting addition
Post by: OS923 on July 05, 2018, 06:35:08 AM
How do you make a PPC scripting addition for OS 9? I can make 68K scripting additions.

I know that it's a program, and you have to install and remove your AE handlers.

Does someone have an example for OS 9? I read some stuff but it was for OSX.
Title: Re: PPC scripting addition
Post by: Daniel on July 05, 2018, 07:14:20 AM
Presumably you would do it exactly the same, but use Universal Procedure Pointers for all your handlers.
Title: Re: PPC scripting addition
Post by: OS923 on July 09, 2018, 08:12:07 AM
It's a shared library. Instead of __initialize you chose a function that installs your handlers. Instead of __terminate you chose a function that removes your handlers. That's what I needed to know.

There's a working example on http://merzwaren.com/snippets/index.html