Re: Objective-C++/C++ with CocoaUI Issue...
Re: Objective-C++/C++ with CocoaUI Issue...
- Subject: Re: Objective-C++/C++ with CocoaUI Issue...
- From: Richard Burnett <email@hidden>
- Date: Mon, 19 Jun 2006 11:10:46 -0400
That ended up doing it. It wasn't clear to me before you needed to have the extension, but now I've just moved everything to a .mm extention. I am curious why it decided to create a .cpp file initially anyways when I created a blank project.
What I had tried to do was pass in the address of a pointer from the UI to the AU code, and then set that pointer to point to a class array in the AU. No matter what I did, this would not work.
So instead, I passed in a pointer to a structure in the UI that had an array of pointers and then just set all those pointers to point to the same classes in the array in the AU code. This worked with no problem. I'm *sure* there is probably a better way to do this, but for now, any ojects from my AU I want to access from the UI, I just add them to my structure and use the Property functions to set the reference.
Anyways, thanks for the help!
Rick
>The file extension is ".mm". I don't know what else you have to
>change -- I've always created the files from scratch.
>If renaming the extension doesn't work, try creating a new file using
XCode's file menu and copying the old contents into it.
>Oh, and be forewarned that calls to call by reference parameters
>didn't work the last time I tried it from Objective-C++: You get no
>warnings whatsoever, it just generates bogus code. This was a year
>or so ago, it might be fixed, now.
_______________________________________________
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