method_getNumberOfArguments counts blocks twice
method_getNumberOfArguments counts blocks twice
- Subject: method_getNumberOfArguments counts blocks twice
- From: Philip White <email@hidden>
- Date: Fri, 20 Nov 2009 19:25:57 -0600
Hello,
I apologize if this has been touched on already. Have others
observed that the function method_getNumberOfArguments counts block
arguments as two arguments? The corresponding method in
NSMethodSignature counts them once. Similarly, method_getArgumentType
splits up the "@?" into "@" and "?" but NSMethodSignature doesn't.
This is on i386, I haven't checked on intel 64.
And a quick question, is "@?" used exclusively for blocks? It's not
listed here:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html
but that link might be out of date.
Thanks,
-Philip White
_______________________________________________
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