• 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: Multiple declarations of objc_msgSend_stret
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Multiple declarations of objc_msgSend_stret (From: Jeff Kelley <email@hidden>)

  • Prev by Date: Re: Multiple declarations of objc_msgSend_stret
  • Next by Date: Re: Multiple declarations of objc_msgSend_stret
  • Previous by thread: Re: Multiple declarations of objc_msgSend_stret
  • Next by thread: Drawing images on top of each other
  • Index(es):
    • Date
    • Thread