On 18 Jun 2011, at 17:09, ben kamen wrote:

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 :

Are you copying the view bundle into the main plugin bundle? In the 'Targets' section in the original cocoa templates you should see a 'Copy Files' build phase inside your main plugin bundle. To add this to your project use the cog/wheel drop down menu and then:

Add >> New Build Phase >> New Copy Files Build Phase

Make sure the destination is set to 'Resources' and then drag and drop your CocoaView.bundle (from 'Products') into this build phase.

Hope that helps,
Stephen




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;

                }

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/stephen%40audiospillage.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to