Java borrowed from Objective-C on this and many other features. Java
was actually derived from Obj-C.
It is a "class method".
OK. I like Objective-C better anyway.
As to your other question, do this:
[[myInstance class] myClassMethod];
Yes, thank you, that worked.
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 a
Hi,
let's say I have a class "MyClass"
@interface MyClass : NSObject{
- (void) myInstanceMethod;
+ (void) myClassMethod;
}
with an instance "myInstance"
MyClass *myInstance = [[MyClass alloc] init];
. I could then call myInstanceMethod like
[myInstance myInstanceMethod];
. I could call