I was writing an AppleScript manager class using this example (the one by BenoitMarchal). I basically needed a method that could call an AppleScript function with parameters. The author said that it was the way to do it with Cocoa, but he used some Carbon-only constants (ie kASAppleScriptSuite, kASSubroutineEvent, etc.). Since Cocoa doesn't seem to have those constants, I added the Carbon header in order to be able to compile the code under my Cocoa plugin.
Is this a bad practice? Could it cause any problems in the future? Should I be looking for the Cocoa equivalents? thanks
Is this a bad practice? Could it cause any problems in the future? Should I be looking for the Cocoa equivalents? thanks