Re: How to get bundle for pAudioUnit (in Objective-C)?
Re: How to get bundle for pAudioUnit (in Objective-C)?
- Subject: Re: How to get bundle for pAudioUnit (in Objective-C)?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 7 Feb 2011 15:59:19 -0800
On Mon, Feb 7, 2011 at 3:19 PM, Howard Moon <email@hidden> wrote:
> I solved it! Apparently, my C++ background is messing with my ability to do Objective-C properly. I had defined the init and dealloc members in my header file, thinking that (as in C++) you need to put them in the header file whenever you want to override them. I commented out the header file declarations, leaving only the new implementations in my .mm file, and now it works fine!
>
> So, I guess my Objective-C lesson for the day is to NOT re-define functions that I'm going to override!
Redeclaring methods is not problematic in Objective-C. The compiler
ignored your redeclaration of -init and -dealloc, as they were already
declared by NSObject, your class's farthest ancestor.
You are thrashing here and engaging in a practice called shotgun
programming, where you keep trying different things hoping to make the
compiler happy. At this point you should stop attempting to make
progress on your project and instead focus on learning Objective-C.
--Kyle Sluder
_______________________________________________
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