• 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
Best practice question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best practice question


  • Subject: Best practice question
  • From: "Alan Smith" <email@hidden>
  • Date: Fri, 27 Oct 2006 16:46:48 -0400

Hi all,

I've seen many variations of the init method and I'm wondering which
is the best way to go. Currently I do it like this;

- (id)init
{
 if (self = [super init])
 {
   // Perform init code
   return self;
 }
 return nil;
}

Many thanks, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that religion really is unimportant, then it
shall evolve."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Best practice question
      • From: "Shawn Erickson" <email@hidden>
    • Re: Best practice question
      • From: Glen Simmons <email@hidden>
  • Prev by Date: Re: Re: Keys down while dragging
  • Next by Date: Re: Seeking debugging advice
  • Previous by thread: Re: Best way to implement LRU cache?
  • Next by thread: Re: Best practice question
  • Index(es):
    • Date
    • Thread