hello, I'm trying to implement a Cocoa custom view in a project started by the AU Instrument template. I'm really new to mac os programming, so excuse me for the mistakes and misunderstandings i will probably make.
I get 35 errors form the compiler on the cocoaViewFactory file I extracted from the audiounit effect template. This file has been imported with all known related files, including headers, cocoaView files and .xib file.
the compiler says it didn't find the references of many cocoa classes, including NSView, NSString, NSSlider, and so on... i don't understand why, because i have still myCocoaViewFactory inheriting from NSObject with the protocol <AUCocoaUIBase>. What is precisely happening? It's like a lot of cocoa subclasses could not be found, but are they found with only "#import <Cocoa/Cocoa.h>" in the header file of myCocoaViewFactory? I'll look at that sample code right now, hoping it will give me a start of answer:
if anyone can help, it would be a great start for me.
thanks for your patience, cheers,
Fabien |