ok, so it seems like my problem is actually in getting it to load the bundle in the first place. what am i missing?
the bundle identifier in the plist is set to : com.olympia-noise-co.RO_CocoaViewFactory
and in the main cpp file i have this, which prints the "bundle didn't load" error :
OSStatus Rainbow_Oscillator::GetProperty( AudioUnitPropertyID inID, AudioUnitScope inScope, AudioUnitElement inElement, void * outData ) { if (inScope == kAudioUnitScope_Global) { switch (inID) { case kAudioUnitProperty_CocoaUI: { // Look for a resource in the main bundle by name and type. CFBundleRef bundle = CFBundleGetBundleWithIdentifier( CFSTR("com.olympia-noise-co.RO_CocoaViewFactory") );
if (bundle == NULL) { printf("bundle didn't load"); return fnfErr;
} |