• 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: Ken Thomases <email@hidden>
  • Date: Sat, 8 May 2010 09:17:44 -0500

On May 8, 2010, at 9:06 AM, Joanna Carter wrote:

> If you declare +init, you are writing a static method, not an instance method.

And while we're correcting things, there's no such thing as a "static method" in Objective-C.  There are class methods.  The use of "static" in this way is a C++-ism.

Beyond just being a matter of conventional terminology of the language community, Objective-C class methods are just as dynamic as instance methods.  So the adjective "static" is inapplicable.

Cheers,
Ken

_______________________________________________

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

  • Follow-Ups:
    • Re: self = [super init], nil?
      • From: Joanna Carter <email@hidden>
References: 
 >Re: self = [super init], nil? (From: Flavio Donadio <email@hidden>)
 >Re: self = [super init], nil? (From: Joanna Carter <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