• 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: Variable Number of Parameters in Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable Number of Parameters in Method


  • Subject: Re: Variable Number of Parameters in Method
  • From: Lee Ann Rucker <email@hidden>
  • Date: Thu, 22 Aug 2013 13:42:18 -0700

On Aug 21, 2013, at 11:37 PM, Dave wrote:

> Hi,
>
> It's not much good to me since I don't have a problem passing objects but with passing a mixed set.
>
> Type passing, 1,2,3,5.6,@"hello",nil to the arrayWithObjects and you will see what I mean
>
> Cheers
> Dave

But 1,2,3 etc aren't objects. I keep looking at your concept and wondering how you expect to handle an integer that happens to be 0. We've got code that takes mixed parameters but everything - even the objects - has to be in pointers. It's a wrapper around NSInvocation, so eventually a standard method is going to get it; no type-guessing involved.
_______________________________________________

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


References: 
 >Nav stack creating a bunch of UIImageViews on top of my view (From: Rick Mann <email@hidden>)
 >Variable Number of Parameters in Method (From: Dave <email@hidden>)
 >Re: Variable Number of Parameters in Method (From: "Stephen J. Butler" <email@hidden>)
 >Re: Variable Number of Parameters in Method (From: Dave <email@hidden>)
 >Re: Variable Number of Parameters in Method (From: "Stephen J. Butler" <email@hidden>)
 >Re: Variable Number of Parameters in Method (From: Alex Zavatone <email@hidden>)
 >Re: Variable Number of Parameters in Method (From: Alex Zavatone <email@hidden>)
 >Re: Variable Number of Parameters in Method (From: Dave <email@hidden>)

  • Prev by Date: Re: frame puzzle
  • Next by Date: Re: frame puzzle
  • Previous by thread: Re: Variable Number of Parameters in Method
  • Next by thread: Re: Variable Number of Parameters in Method
  • Index(es):
    • Date
    • Thread