• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Nil-terminated object list?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: The lock paradigm
  • Next by Date: Re: Nil-terminated object list?
  • Previous by thread: Nil-terminated object list?
  • Next by thread: Re: Nil-terminated object list?
  • Index(es):
    • Date
    • Thread