• 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: newbie: send message to class not instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie: send message to class not instance


  • Subject: Re: newbie: send message to class not instance
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 16 Oct 2008 11:39:14 -0700

On Oct 16, 2008, at 9:38 AM, Horst Jäger wrote:
. I could call the static (or, like the Java-people say, class-) method like

Java borrowed from Objective-C on this and many other features. Java was actually derived from Obj-C.


It is a "class method".  Not a static method.

Class methods are inherited and can be overridden.

As to your other question, do this:

[[myInstance class] myClassMethod];

Done.

b.bum

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: newbie: send message to class not instance
      • From: Horst Jäger <email@hidden>
References: 
 >newbie: send message to class not instance (From: Horst Jäger <email@hidden>)

  • Prev by Date: newbie: send message to class not instance
  • Next by Date: Re: Unable to parse special characters using NSXMLParser
  • Previous by thread: newbie: send message to class not instance
  • Next by thread: Re: newbie: send message to class not instance
  • Index(es):
    • Date
    • Thread