Re: Multiple declarations of objc_msgSend_stret
Re: Multiple declarations of objc_msgSend_stret
- Subject: Re: Multiple declarations of objc_msgSend_stret
- From: Kyle Sluder <email@hidden>
- Date: Thu, 3 Feb 2011 18:40:52 -0800
On Thu, Feb 3, 2011 at 6:18 PM, Jeff Kelley <email@hidden> wrote:
> I’m trying to use objc_msgSend_stret to call -bounds on a UIScreen. I have the following code:
You need to explicitly #import <objc/objc-runtime.h> (or
<objc/message.h>, where the declaration really lives). Otherwise, the
compiler will issue a warning (which you should have seen) that it is
coming up with a guess about the signature of objc_msgSend_stret, and
that guess will be wrong.
--Kyle Sluder
_______________________________________________
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