Re: self = [super init], nil?
Re: self = [super init], nil?
- Subject: Re: self = [super init], nil?
- From: Kyle Sluder <email@hidden>
- Date: Sat, 8 May 2010 10:04:07 -0700
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