• 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: Amount of Arguments per Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Amount of Arguments per Method


  • Subject: Re: Amount of Arguments per Method
  • From: Greg Parker <email@hidden>
  • Date: Mon, 22 Jun 2009 12:59:59 -0700

On Jun 22, 2009, at 1:03 AM, Roland King wrote:
This still the longest one or has Apple outdone themselves since? 11 args, you really wouldn't want much more than this.

-(id) initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel :

One of the Objective-C runtime's unit tests includes methods with names like


    @selector(idret::::::::::::::::::::::::::::)

That's 28 unnamed parameters. (The test fills every parameter register with a value, to make sure objc_msgSend() doesn't trample them. Some architectures have a lot of parameter registers.)


-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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: 
 >Amount of Arguments per Method (From: Chunk 1978 <email@hidden>)
 >Re: Amount of Arguments per Method (From: WT <email@hidden>)
 >Re: Amount of Arguments per Method (From: Roland King <email@hidden>)

  • Prev by Date: Re: Approaches for this Matching Problem?
  • Next by Date: ABPeoplePickerView Drag & Drop
  • Previous by thread: [Moderator] Re: Amount of Arguments per Method
  • Next by thread: Re: Amount of Arguments per Method
  • Index(es):
    • Date
    • Thread