I have been looking everywhere for an answer to this question – perhaps I’m looking in the wrong places. Also, I’m brand new to Objective C although I have around 10 years of experience as a developer.
for this code:
[receiver makeGroup:group, memberOne, memberTwo, memberThree];
what would the method definition look like?
- (void)makeGroup:(Group *)g, (NSString *)memberOne, ...?
Thanks for any help you can provide. I know this is probably very simple…
Thanks,
R
It looks like you have a method that can take a variable number of arguments. If that’s the case, the definition would look something like:
Check out
NSString‘sstringWithFormat:orNSArray‘sarrayWithObjects:methods for examples.Edit: Upon further documentation reading, it seems that you are looking at the exact example that’s in the Objective-C 2.0 documentation. The declaration you’re looking for is right at the bottom of page 36.