• 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
How do I get NSRect to be the same as CGRect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I get NSRect to be the same as CGRect?


  • Subject: How do I get NSRect to be the same as CGRect?
  • From: Rick Mann <email@hidden>
  • Date: Sun, 16 Dec 2007 15:46:18 -0800

In NSGeometry.h, there is some code that switches based on (__LP64__ || NS_BUILD_32_LIKE_64), and if that's true, does:

typedef CGRect NSRect;


Otherwise, it defines NSRect explicitly. I don't understand why it does this, and it would make it easier if it just used the typedef. What do those flags mean, and is there a way for my code to get the typedef version?


TIA,
Rick

_______________________________________________

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


  • Follow-Ups:
    • Re: How do I get NSRect to be the same as CGRect?
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: Re: CurrencyConverter Bindings tutorial skips steps?
  • Next by Date: Re: How do I get NSRect to be the same as CGRect?
  • Previous by thread: Re: CurrencyConverter Bindings tutorial skips steps?
  • Next by thread: Re: How do I get NSRect to be the same as CGRect?
  • Index(es):
    • Date
    • Thread