• 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
Parts of a Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Parts of a Method
      • From: Isaac Sherman <email@hidden>
    • Re: Parts of a Method
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: malloc_size nowhere?
  • Next by Date: Re: Parts of a Method
  • Previous by thread: NSWorkspace's iconForFileType
  • Next by thread: Re: Parts of a Method
  • Index(es):
    • Date
    • Thread