Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: PPC scripting addition  (Read 4725 times)

OS923

  • 512 MB
  • *****
  • 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.
Logged

Daniel

  • 256 MB
  • *****
  • Posts: 302
  • 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.
Logged

OS923

  • 512 MB
  • *****
  • 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
Logged
Pages: [1]   Go Up

Recent Topics