| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Does this mean that I could write my method calls as:
[myRect setWidth:10.0, 10.5];
Would it be acceptable without any parameter names, just commas? Or, do I
have to use colons?
[myRect setWidth:10.0 :10.5];
Just trying to get as close to a c++ style calling structure as possible
since that's the way my brain's wired right now. Fewer keystrokes is
better.
Also, what does the minus sign ("-") mean in the declaration? I've seen the
plus sign used also. What's the difference? All it says in the docs is
"you could also use the plus sign..." but doesn't follow up with any meaning
behind it.
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
| References: | |
| >Re: ObjC Method naming (From: Scott <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.