Re: no fixed variable parameter preceding a variable ... parameter?
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.