Author Topic: PPC scripting addition  (Read 1187 times)

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 525
PPC scripting addition
« 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.

Offline Daniel

  • Gold Member (200+ Posts)
  • *****
  • Posts: 271
  • Programmer, Hacker, Thinker
Re: PPC scripting addition
« Reply #1 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.

Offline OS923

  • Platinum Member (500+ Posts)
  • *****
  • Posts: 525
Re: PPC scripting addition
« Reply #2 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