Re: self = [super init], nil?
Re: self = [super init], nil?
- Subject: Re: self = [super init], nil?
- From: Flavio Donadio <email@hidden>
- Date: Sat, 8 May 2010 14:18:57 -0300
Kyle,
Thank Gosh you can't see my face now... I am blushing! Shame on me!
I've been doing the wrong thing for ages!
Cheers,
Flavio
On 08/05/2010, at 14:04, Kyle Sluder wrote:
> On Sat, May 8, 2010 at 10:00 AM, Flavio Donadio <email@hidden> wrote:
>>
>> - (id)init
>> {
>> self = [super init];
>> // blah blah blah ...
>> return self; // return type will be NSObject!!
>> }
>
> NO! Please reread the fundamental ObjC documentation.
>
> And remember, you must *always* reassign self!
>
> --Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden