• 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: Which flavor of objc_msgSend for NSSize return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which flavor of objc_msgSend for NSSize return


  • Subject: Re: Which flavor of objc_msgSend for NSSize return
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 11 May 2007 15:50:39 -0400

On May 11, 2007, at 3:13 PM, Rosyna wrote:

I'm trying to call a method that returns an NSSize on i386. Do I use objc_msgSend, _fpret, or _stret?

CamelBones uses _stret for all of NSPoint, NSRange, NSRect, and NSSize. It only uses _fpret on Intel if the return is a plain old float or double, not a struct of any sort.


NSSize is small, so the size qualifies for the plain objc_msgSend.

"Small" is small enough to fit in one register, but two floats don't.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Which flavor of objc_msgSend for NSSize return
      • From: Rosyna <email@hidden>
References: 
 >Which flavor of objc_msgSend for NSSize return (From: Rosyna <email@hidden>)

  • Prev by Date: Which flavor of objc_msgSend for NSSize return
  • Next by Date: Re: Which flavor of objc_msgSend for NSSize return
  • Previous by thread: Which flavor of objc_msgSend for NSSize return
  • Next by thread: Re: Which flavor of objc_msgSend for NSSize return
  • Index(es):
    • Date
    • Thread