Objective-C++/C++ with CocoaUI Issue...
Objective-C++/C++ with CocoaUI Issue...
- Subject: Objective-C++/C++ with CocoaUI Issue...
- From: Richard Burnett <email@hidden>
- Date: Sun, 18 Jun 2006 13:00:13 -0400
I have a C++ class named "Lfo" defined in a set of files (Lfo.cpp,
Lfo.h). Inside my AUBaseEffect, I instantiate an Lfo object. I pass
the pointer of the object with the GetProperty functionality into my
view class.
The problem I am having is that if I copy my Lfo.cpp and Lfo,h files
in the Compile Sources of the 'CocaUI' target, I get >2000 errors
when it is precompiling the headers. If I don't copy the files over,
and I try to build the project, the linker cannot find any of the
functions for Lfo, which is true since the source wouldn't be linked
in, since it wasn't compiled in.
What is the proper way in Xcode to have it allow C++ and Objective-C+
+ together?
As another option, I tried creating a new target of type carbon
object. I placed to the Lfo files in there and built them, then took
that and added it to the 'Link Binary With Libraries' of the
'CocoaUI'. This then built with no problem, but when I bring up the
UI in a host, it then tells me:
AU view's main class does not properly implement the AUCocoaUIBase
protocol
And that is with just including the .o file, not doing anything with
it (I commented out all the calls and reference to anything in that
file just to see if it was the fact the file was just linked in with
it).
I am at a loss of what to do from this point. Any suggestions?
Rick
_______________________________________________
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