For Developers: Question regarding OpenDefaultComponent()
Hello everyone,
I'm currently implementing some AppleScript related function in C. Now I've ran into a problem using the OpenDefaultComponent() function. According to Apple's developer documentation it is defined like this:
ComponentInstance OpenDefaultComponent (
OSType componentType,
OSType componentSubType );
...and is a part of Components.h (which in turn is a part of the Carbon Framework). The following line produces no error during compilation, but at runtime I get an error "ZeroLink: unknown symbol '_OpenDefaultComponent'":
ComponentInstance ASComponent = OpenDefaultComponent(kOSAComponentType, kAppleScriptSubtype);
System:
MacOS X 10.3.6
DevTools Versions:
Xcode IDE: 389.0
Xcode Core: 387.0
ToolSupport: 372.0
Any ideas?
Greetings,
durandal
I'm currently implementing some AppleScript related function in C. Now I've ran into a problem using the OpenDefaultComponent() function. According to Apple's developer documentation it is defined like this:
Code:
ComponentInstance OpenDefaultComponent (
OSType componentType,
OSType componentSubType );
...and is a part of Components.h (which in turn is a part of the Carbon Framework). The following line produces no error during compilation, but at runtime I get an error "ZeroLink: unknown symbol '_OpenDefaultComponent'":
Code:
ComponentInstance ASComponent = OpenDefaultComponent(kOSAComponentType, kAppleScriptSubtype);
System:
MacOS X 10.3.6
DevTools Versions:
Xcode IDE: 389.0
Xcode Core: 387.0
ToolSupport: 372.0
Any ideas?
Greetings,
durandal