[ Who Am I? ]
[ Software Creations ]
[ Civilization ]
[ Think Different ]
[ Photo Gallery ]
[ Diversions ]
A long, long time ago in a galaxy far, far away (Carbon), I did most of
my Macintosh development with PowerPlant, the framework included with
CodeWarrior. This page offers souce code I wrote to enhance PowerPlant.
Improved Apple Event Support
PowerPlant has great support for Apple Events, but there are some definate
holes in it. I've fixed a number of them for my applications, and have
submitted the changes to Metrowerks for inclusion in the next release of
PowerPlant. Until then, you can find diffs here that you can apply to
PowerPlant classes to fix these problems.
- LModelDirector.cp
Two changes here: (1) the subject attribute will be examined
for the object to send the message to. That way a scripter can
tell your object to do something, instead of having to make your
object the direct object of the event. (2) A fix so that PowerPlant
properly handles lists containing lists.
- UAppleEventsMgr-AddOn.cp
A utility method called by the above modified LModelDirectory.
I added it to UAppleEventsMgr, you can do the same or place
it somewhere else.
- LModelObject.cp
On Mac OS X, if you ask for an object by name sending Unicode,
it is sent as formAbsolutePosition instead of formName. This
patch address that by checking to see if the data is larger
than 4 bytes. If so, it can't be an absolute position and
instead treats it as formName.
[ Who Am I? ]
[ Software Creations ]
[ Civilization ]
[ Think Different ]
[ Photo Gallery ]
[ Diversions ]