• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ObjC Method naming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: ObjC Method naming (From: Scott <email@hidden>)

  • Prev by Date: menu problems
  • Next by Date: Re: Serious Questions - count of missing API descriptions
  • Previous by thread: Re: ObjC Method naming
  • Next by thread: Re: ObjC Method naming
  • Index(es):
    • Date
    • Thread