iphone - Newbie Objective C developer question -


I'm looking everywhere for this question - maybe I'm looking into the wrong places. New to C, although I have about 10 years of experience as a developer.

For this code:

  [receiver make group: group, memberOne, member, two, member three];  

What does the law definition look like?

  - (zero) make group: (Group *) g, (nssting *) memberon, ...?  

Thank you for any assistance you can provide. I know it's probably very simple ...

thanks, r

It seems that you have a method that can take a variable number of arguments. If this is the case, then the definition will look like this:

  - (zero) make group: (group *) live, ...;  

Check NSString 's stringWithFormat: or NSArray ' s arrayWithObjects: Methods for examples

EDIT: Upon reading the document, it seems that you are looking at the exact example. The declaration you are looking for is at the bottom of page 36.


Comments