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.