Re: newbie: send message to class not instance
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