• 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
variable arguments in ObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

variable arguments in ObjC


  • Subject: variable arguments in ObjC
  • From: Nicholas Shanks <email@hidden>
  • Date: Fri, 22 Feb 2002 13:42:00 +0000

I want to write a function with a variable number of arguments, all "id"s,
and the last one being nil. (The same as NSArray's initWithObjects)
The only mention of this in association with Objective C I can find is on a page saying "you can't do this with java", but doesn't say how to do it with Cocoa! (http://www.bignerdranch.com/Resources/Java.html)

Can anyone point me in the right direction?

Nicholas Shanks
--

http://nickshanks.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: variable arguments in ObjC
      • From: Nicholas Shanks <email@hidden>
    • Re: variable arguments in ObjC
      • From: Christophe Dore <email@hidden>
  • Prev by Date: Re: PB/IB things that have stopped working
  • Next by Date: Re: IB question
  • Previous by thread: Re: How dynamicaly adddress a message?
  • Next by thread: Re: variable arguments in ObjC
  • Index(es):
    • Date
    • Thread