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: AI Developer <email@hidden>
- Date: Tue, 08 Feb 2011 13:10:22 +0530
Howard,
Referring to your original post, stringWithContentsOfFile will return
an auto-released NSString object. If you want to keep using it, you will
need to retain it (unless you're already doing it somewhere else before
the call returns).
Having said that, I agree with what Kyle has said about learning
Objective-C.
Thanks.
Devendra.
On 2/8/11 5:29 AM, Kyle Sluder wrote:
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
_______________________________________________
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