Re: Variable Number of Parameters in Method
Re: Variable Number of Parameters in Method
- Subject: Re: Variable Number of Parameters in Method
- From: Keary Suska <email@hidden>
- Date: Wed, 21 Aug 2013 07:42:07 -0600
On Aug 21, 2013, at 3:22 AM, Dave wrote:
> Sorry that snippet was from an existing method that used a nil terminated list, you're right, I can't do that in this case.
>
> I was thinking that it would be easier if everything was an Object, the types I need to support are:
>
> id
> Numeric types, signed/unsigned integers of different lengths and floats.
>
> So I could convert anything that is not an object into an NSNumber and numberWithXXX, which looks like the best way to go!
Or you could pass scalars by reference. e.g. &intValue. All pointers will have the same size and you avoid the NSNumber wrapping overhead.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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