Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Nil-terminated object list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nil-terminated object list?



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.


References: 
 >Nil-terminated object list? (From: Nick Zitzmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.