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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com