• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: self = [super init], nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: self = [super init], nil? (From: Flavio Donadio <email@hidden>)
 >Re: self = [super init], nil? (From: Joanna Carter <email@hidden>)
 >Re: self = [super init], nil? (From: Flavio Donadio <email@hidden>)
 >Re: self = [super init], nil? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: self = [super init], nil?
  • Next by Date: Re: self = [super init], nil?
  • Previous by thread: Re: self = [super init], nil?
  • Next by thread: Re: self = [super init], nil?
  • Index(es):
    • Date
    • Thread