Re: Re: Objective-C and it's future
Re: Re: Objective-C and it's future
- Subject: Re: Re: Objective-C and it's future
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 7 Jul 2006 18:23:32 -0700
On 7/7/06, Rob Ross <email@hidden> wrote:
Are you saying you can write an init method with a signature like this:
- (FooClass *)init;
I thought that if you overrode a method from a superclass, the
signatures must match (including the return type).
Or am I wrong about that?
Sorry should have been more clear in my wording (was thinking of
designated initializers of various classes that I have)... you can
specify type for say -(MyBubba*) [MyBubba initWithGump:] and the
compiler will warn if you tried to assign it to a variable with the
wrong type.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden