• 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: no fixed variable parameter preceding a variable ... parameter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no fixed variable parameter preceding a variable ... parameter?


  • Subject: Re: no fixed variable parameter preceding a variable ... parameter?
  • From: Ben Dougall <email@hidden>
  • Date: Sun, 26 Oct 2003 12:41:32 +0000

On Saturday, October 25, 2003, at 10:16 pm, Jonathan Wight wrote:

Copy the way -[NSArray arrayWithObjects] works.

+ (id)arrayWithObjects:(id)firstObj, ...

A NULL in an parameter in the list terminates the list.

yup, of course! that's it. make the first object the fixed variable, then if there are any others they fill up the variable part - that's quite obvious really but i completely missed it. i guess a variable parameter is cool with no objects - if it has no objects passed within the variable part? doesn't matter i'll find out - i guess it is.

great, thanks v. much :)
_______________________________________________
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: no fixed variable parameter preceding a variable ... parameter?
      • From: Ben Dougall <email@hidden>
References: 
 >Re: no fixed variable parameter preceding a variable ... parameter? (From: Jonathan Wight <email@hidden>)

  • Prev by Date: PBX on Panther
  • Next by Date: [OT] Panther's Mail.app
  • Previous by thread: Re: no fixed variable parameter preceding a variable ... parameter?
  • Next by thread: Re: no fixed variable parameter preceding a variable ... parameter?
  • Index(es):
    • Date
    • Thread