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: Charlton Wilbur <email@hidden>
- Date: Sat, 8 Jan 2005 15:34:01 -0500
On Jan 8, 2005, at 3:04 PM, Tommy Nordgren wrote:
Jan 8, 2005 kl. 8:38 PM skrev Vincent Coetzee:
Dear List,
How does one create methods in Objective-C that use a variable number
of arguments. I am familiar with the normal C mechanism, but does
this work in Objective-C considering the hidden arguments to methods
(i.e. _self and _cmd) ? So can I use the normal C mechanism and if
not how is it done ? Some sample code would be appreciated.
As far as I know, the objective C syntax don't allow variadic methods.
Others have replied (demonstrating that the quickest way to find out
how to do something online is to assert that it is impossible!) but I'd
like to note that the way to find references on this in Apple
documentation is *not* to search for 'variadic' (which is an obvious
first keyword) but to search for va_args or va_list.
Charlton
--
Charlton Wilbur
email@hidden
email@hidden
_______________________________________________
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