Parts of a Method
Parts of a Method
- Subject: Parts of a Method
- From: Brendon Bruns <email@hidden>
- Date: Mon, 12 Aug 2002 21:34:20 -0800
Here is a particular method from the Currency Converter project tutorial
provided by Apple that is defined in the .h file:
- (float)convertAmount:(float)amt atRate:(float)rate;
Now, why would there be three "(floats)" in this method? I can see that
(float)amt and (float)rate are both arguments that would hold a number (I
believe argument is the correct word.) Is the first (float) referring to
the type of value that is returned from the method? And is convertAmount:
atRate: just referring to the name of the method that is called by a
message?
Just for extra info, the message that calls the method is: total =
[converter convertAmount:amt atRate:rate];
Thanks for any help!
Brendon
--
"If life gives you lined paper, write the other way"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.