On Thu, Feb 3, 2011 at 6:18 PM, Jeff Kelley <[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to