Re: Objective-C variadic methods vs. NSArray et al.
Re: Objective-C variadic methods vs. NSArray et al.
- Subject: Re: Objective-C variadic methods vs. NSArray et al.
- From: "Clark Cox" <email@hidden>
- Date: Fri, 21 Nov 2008 16:36:37 -0800
On Fri, Nov 21, 2008 at 4:02 PM, Bill Bumgarner <email@hidden> wrote:
> On Nov 21, 2008, at 3:52 PM, Clark Cox wrote:
>>
>> two ways to do this:
>>
>> 1) Have the information encoded in the first parameter (like a printf
>> format string)
>> 2) Have some sentinel value marking the end of the list (like the nil
>> passed to arrayWithObjects:)
>
> 3) Have a second parameter that provides the count:
>
> - (void) readCount: (unsigned int) count stuffs: (Stuff *) aStuff, ...;
Which is covered by my #1, ... for very simple meanings of the word "encode" :)
--
Clark S. Cox III
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden