infinite AU cocoa view frustrations
infinite AU cocoa view frustrations
- Subject: infinite AU cocoa view frustrations
- From: email@hidden
- Date: Fri, 23 Feb 2007 13:22:42 -0500 (EST)
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.
At this point the project would build, but it would no longer validate ("Cocoa
Views information cannot be retrieved.").
So I deleted my project and the installed component, and started from scratch.
I did exactly what I did before, just trying to get a build without renaming
the Cocoa UI classes like I did before. now I no longer can do this. here's
what I do:
1. I create a new project from the AudioUnit with Cocoa View template called
"CocoaEffect".
2. I change the #define subtype and manufacturer in CocoaEffectVersion.h to
"test" and "AiAu".
3. I change the CFBundleIdentifier of my CocoaEffect target to
"com.mycompany.audiounit.CocoaEffect" and the creator to "AiAu"
4. I change the CFBundleIdentifier of the CocoaUI target to
"com.mycompany.audiounit.CocoaEffect" and the creator to "AiAu". I set the
principle class to CocoaViewFactory and the main nib file to "CocoaView" (I
know I'm not supposed to do this.).
5. I comment out th #errors in the Cocoa UI header files.
it builds, but won't validate! I confirmed that previous components were
removed with auval -a. I restarted my computer in case there was some
namespace conflict with my old UI classes (I don't see how this would be
possible). I've tried starting from scratch over and over again. I just don't
know what to do at this point.
Any thoughts? Thanks a lot!
Joe
_______________________________________________
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