Re: Variadic arguments to methods in Objective-C - How ?
Re: Variadic arguments to methods in Objective-C - How ?
- Subject: Re: Variadic arguments to methods in Objective-C - How ?
- From: Andreas Mayer <email@hidden>
- Date: Sat, 8 Jan 2005 21:22:57 +0100
Am 8. Jan 2005 um 20:38 Uhr schrieb Vincent Coetzee:
So can I use the normal C mechanism and if not how is it done ?
Usually you just use an NSArray or NSDictionary and populate it with
the arguments.
- (void)doSomethingWithLotsOfArgumentsFromArray:(NSArray *)theArguments
{
id argumentOne = [theArguments objectAtIndex:0];
...
}
[yourObject doSomethingWithLotsOfArgumentsFromArray:[NSArray
arrayWithObjects:@"one", @"two", nil]];
Andreas
_______________________________________________
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