• 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: infinite AU cocoa view frustrations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: infinite AU cocoa view frustrations


  • Subject: Re: infinite AU cocoa view frustrations
  • From: Michael Hopkins <email@hidden>
  • Date: Mon, 26 Feb 2007 09:54:19 -0800

Joe,

You need to make sure that you also change the audio unit, and not just the view code. You need to make sure that the identifier that you pass for CFBundleGetBundleWithIdentifier in the GetPropertyCall() matches the identifier that you are using for your ui bundle (I don't see that you have done this in your first group of steps below).  Also, you need to make sure that the class name string is correct. 

I know this is a bit confusing. We have forthcoming documentation that will describe all of this in detail. In the meanwhile, I'll be happy to help.

Best wishes,

Michael

On Feb 23, 2007, at 10:22 AM, email@hidden wrote:

hello coreaudio-api list,

I'm having problems getting my audio unit to validate when using a cocoa view ("ERROR: Cocoa Views Information cannot be retrieved").  I'm using a MacBook running 10.4.8 with CoreAudioSDK v1.4.4.

basically, I made a MusicDevice with a Cocoa view which I could never get to work, so I went back to the AudioEffect with Cocoa view template, made the most minimal number of changed (I did not change the CocoaFactoryView and CocoaView class names).  This worked.  I was able to validate my audio unit and see the custom view in AULab.

So then I decided to change my Cocoa UI class names.  I followed the following steps:

1. Renamed all files from Cocoa*.* to MyCocoa_*.*.
2. Changed CocoaView class to MyCocoa_View and CocoaViewFactory to MyCocoa_ViewFactory.
3. Opened CocoaView.nib (I did not change the name of this, and I shouldn't have to, right?).  I dragged MyCocoa_View.h and MyCocoa_ViewFactory.h to my nib in interface builder.
4. I changed the custom class of File's Owner to MyCocoa_ViewFactory.
5. I changed the custom class of CocoaView to MyCocoa_View.
6. I ensured connections are preserved including uiFreshlyLoaded outlet.
7  I saved the interface.
8. In XCode I ensured that the CFBundleExecutable was MyCocoa_FactorView, that NSMainNibFile was CocoaView (my nib is still named CocoaView.nib), and that NSPrincipalClass was MyCocoa_ViewFactory.

<snip>
 _______________________________________________
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

References: 
 >infinite AU cocoa view frustrations (From: email@hidden)

  • Prev by Date: program changes
  • Next by Date: Re: Destructor needed
  • Previous by thread: infinite AU cocoa view frustrations
  • Next by thread: Re: infinite AU cocoa view frustrations
  • Index(es):
    • Date
    • Thread