views:

215

answers:

3

So, as I get comfortable with Cocoa/Cocoa-Touch I, like others can't help but notice the rather verbose method names.

What is the absolutely longest method in Cocoa-Touch that you have come across?

To kick things off, I submit that perennial favorite from UITableViewController -

tableView:accessoryButtonTappedForRowWithIndexPath:

Cheers, Doug

A: 

I don’t know of any interesting Cocoa Touch ones, but the longest public one in regular Cocoa is:

-[NSBitmapImageRep initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:]

Longer private ones are known to exist.

Ahruman
Good lord! That's insane.
dugla
A: 

Well if the name of the class counts:

ABPeoplePickerNavigationController:peoplePickerDelegate
UITableView:accessoryButtonTappedForRowWithIndexPath

Mine wins by a nose.

Adam Eberbach
I think we might have a winner.
dugla
+1  A: 
  • (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration;

Only method name is 'willAnimateSecondHalfOfRotationFromInterfaceOrientation'.

dev.hj