• 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: NSInvocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInvocation


  • Subject: Re: NSInvocation
  • From: "Michael Ash" <email@hidden>
  • Date: Fri, 19 Sep 2008 19:14:41 -0400

On Wed, Sep 10, 2008 at 1:44 PM, Michael Ash <email@hidden> wrote:
> But if you use it to call a method which returns a struct, then it
> crashes and burns. It doesn't even throw an exception, it just
> segfaults.
>
> I've filed this as a bug as rdar://6210060. It really should work, but
> it doesn't.

I just thought I would follow up on this, as I got a reply to my bug
today. Basically, the reply says that this problem is known, it's not
possible to fix it, but if you use class_getMethodImplementation() and
class_getMethodImplementation_stret() instead, then the problem goes
away. So if you have a pressing need for forwarded struct-returning
methods to work when doing this, use those.

Mike
_______________________________________________

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: 
 >NSInvocation (From: Chris Idou <email@hidden>)
 >Re: NSInvocation (From: "Michael Ash" <email@hidden>)
 >Re: NSInvocation (From: Ken Thomases <email@hidden>)
 >Re: NSInvocation (From: "Michael Ash" <email@hidden>)
 >Re: NSInvocation (From: Ken Thomases <email@hidden>)
 >Re: NSInvocation (From: "Michael Ash" <email@hidden>)
 >Re: NSInvocation (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: NSOperationQueue
  • Next by Date: Re: NSOperationQueue
  • Previous by thread: Re: NSInvocation
  • Next by thread: Multiple Document types
  • Index(es):
    • Date
    • Thread