• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: audiounit instrument with cocoa view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audiounit instrument with cocoa view


  • Subject: Re: audiounit instrument with cocoa view
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Sun, 19 Jun 2011 11:54:51 -0600


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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: audiounit instrument with cocoa view
      • From: Stephen Blinkhorn <email@hidden>
  • Prev by Date: Re: Non-rectangular image of NSView for dragging
  • Next by Date: Re: Synthesised properties and additional actions
  • Previous by thread: Re: Automatically mirroring folders
  • Next by thread: Re: audiounit instrument with cocoa view
  • Index(es):
    • Date
    • Thread