• 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: method_getNumberOfArguments counts blocks twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: method_getNumberOfArguments counts blocks twice


  • Subject: Re: method_getNumberOfArguments counts blocks twice
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sun, 22 Nov 2009 02:53:42 +0100

Le 21 nov. 2009 à 02:25, Philip White a écrit :

> 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:

From the clang source, it look like block is the only type that uses this pattern.
And from the obj runtime sources, it look like this pattern is not properly handled in method_getNumberOfArguments function.

You should fill a bug report.


-- Jean-Daniel




_______________________________________________

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: 
 >method_getNumberOfArguments counts blocks twice (From: Philip White <email@hidden>)

  • Prev by Date: Re: NSTableView retain count problem
  • Next by Date: Re: NSTableView retain count problem
  • Previous by thread: method_getNumberOfArguments counts blocks twice
  • Next by thread: 2 Problems with setAnimationTransition
  • Index(es):
    • Date
    • Thread