• 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
Passing more than 1 variable to a method/function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing more than 1 variable to a method/function


  • Subject: Passing more than 1 variable to a method/function
  • From: Jerry Brace <email@hidden>
  • Date: Sat, 11 Jun 2005 12:04:30 -0230

Newbie question here - could someone give me some info on how to create a method/function that can accept more than one variable?

As of now I've only needed to pass one - like in the following:

- (void)myFunction:(int)myvar
{

}

[self myFunction:10];

Many thanks!
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Passing more than 1 variable to a method/function
      • From: Shawn Erickson <email@hidden>
    • Re: Passing more than 1 variable to a method/function
      • From: Nathan Day <email@hidden>
  • Prev by Date: Re: Panther support in Universal Binaries?
  • Next by Date: Re: Passing more than 1 variable to a method/function
  • Previous by thread: Re: Still learning about NSAutoReleasePool
  • Next by thread: Re: Passing more than 1 variable to a method/function
  • Index(es):
    • Date
    • Thread