Re: newbie: send message to class not instance

2008-10-17 Thread Horst Jäger
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.

Re: newbie: send message to class not instance

2008-10-16 Thread Bill Bumgarner
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

newbie: send message to class not instance

2008-10-16 Thread Horst Jäger
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