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