I'm an experience programmer on modern hardware, and I thought I would try my hand at creating some classic mac os software. I purchased volumes 1-6 of Inside Macintosh on Amazon and I've been familiarizing myself with the basic ideas.
Heres my current goal. I've got a few macs that will run without a clock battery, and I would like to leave them without a battery. I store my macs for long periods of time and I dont want to install a battery just to take it back out again when I put the mac away.
SOOO, I want to create an extension that sets the time if the current time is before 2016. and I want it to pop up a dialog on startup. I think this is possible because Appleshare will pop up a dialog on startup if appletalk is turned off.
So far, I've managed to write a program that opens a dialog and sets the system clock.
When I go to convert this to an extension, It opens a dialog, however it also causes a bus error and crashes the machine.
My understanding is that a bus error has to do with memory bounds.
Are there special rules about running code on startup? do I need to do something to increase the available memory? Does anyone on here have experience doing this?
Heres my current goal. I've got a few macs that will run without a clock battery, and I would like to leave them without a battery. I store my macs for long periods of time and I dont want to install a battery just to take it back out again when I put the mac away.
SOOO, I want to create an extension that sets the time if the current time is before 2016. and I want it to pop up a dialog on startup. I think this is possible because Appleshare will pop up a dialog on startup if appletalk is turned off.
So far, I've managed to write a program that opens a dialog and sets the system clock.
When I go to convert this to an extension, It opens a dialog, however it also causes a bus error and crashes the machine.
My understanding is that a bus error has to do with memory bounds.
Are there special rules about running code on startup? do I need to do something to increase the available memory? Does anyone on here have experience doing this?