Re: variadic args
Re: variadic args
- Subject: Re: variadic args
- From: Scott Ribe <email@hidden>
- Date: Thu, 24 May 2012 07:43:16 -0600
On May 23, 2012, at 8:43 PM, Charlie Dickman wrote:
> If I have some integer values in an array like {1, 2, 0} is there a way I can convert them to a var_arg list at runtime so that I can pass them to a method that is defined to take a var_arg list. In other words can I turn them into a call like
>
> [self method: 1, 2, 0];
>
> where method looks like
>
> - (void) method: _1st, ... {
Sure. Google "objective-c variadic args"
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >variadic args (From: Charlie Dickman <email@hidden>) |