I need to know the version of the host application in my current FxPlug plugin. I've tried to get this info in the
-initWithAPIManager method by doing this:
Class theClass = NSClassFromString( @"FxHostCapabilities" );
id hostCaps = [[theClass alloc] initWithAPIManager:_apiManager];
UInt32 versionOfHost = [hostCaps hostVersionNumber];
Even though the header file says that this should not be done, it should be working. So on my MBP and a MacPro (both with FCS2) everything works fins. On another Mac with FCS1 (Motion 2.1.2) installed, the above code causes the plugin not to work. The plugin "crashes" and Motion does not even let me drag the plugin from the plugin list to the Layers. When I remove those few lines, the plugin works.
Why is the above code crashing ? (Mac Pro, OSX 10.4.8, Motion 2.1.2, FxPlug 1.1)