Re: ObjC Method naming
Re: ObjC Method naming
- Subject: Re: ObjC Method naming
- From: "David W. Halliday" <email@hidden>
- Date: Mon, 28 May 2001 18:25:22 -0500
- Organization: Latin AmeriCom, formerly Latino Online
Scott wrote:
>
... And when I declare a method, do I HAVE to declare it with
>
parameter names or can I leave them out?
>
>
Ex.
>
- (void) setWidth:(float) w height:(float) h
>
>
Rock on!
>
Scott
>
>
...
Actually, upon rereading this question... If you mean whether you can leave
out the logical parameters when using it like a prototype (such as in the
interface file), then the answer is yes, you can use
- (void) setWidth:(float) height:(float);
as a prototype for the method.
Again, I hope this helps.
David email@hidden