Author Topic: PPC scripting addition  (Read 2778 times)

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
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
  • *****
  • Posts: 300
  • 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
  • *****
  • Posts: 888
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