Re: Nil-terminated object list?
Re: Nil-terminated object list?
- Subject: Re: Nil-terminated object list?
- From: Ken Ferry <email@hidden>
- Date: Mon, 19 Jul 2004 13:12:22 -0400
On Mon, 19 Jul 2004 10:41:42 -0600, Nick Zitzmann <email@hidden> wrote:
>
Here's something I've been wondering about that I haven't seen
>
discussed in the archives...
>
>
How does one make a method that takes a nil-terminated object list as
>
an argument, like NSArray's +arrayWithObjects: and NSDictionary's
>
+dictionaryWithObjectsAndKeys: methods?
>
You'd find it if you searched for varargs or va_list. Here's a
cocoadev page on the subject:
<
http://www.cocoadev.com/index.pl?UsingVariableNumbersOfArguments>
-Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.