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

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


  • Subject: Re: How do I get NSRect to be the same as CGRect?
  • From: odela01 <lachlan.o'email@hidden>
  • Date: Mon, 17 Dec 2007 14:41:02 +1100
  • Thread-topic: How do I get NSRect to be the same as CGRect?

Clark Cox wrote:

> You're forgetting C++ name mangling. To a C++ compiler, the difference
> is quite significant:
>
> void Foo(NSRect r);
>
> This function will have different names depending on whether or not
> NSRect is its own type or if it's just a typedef of CGRect.

Is this the same reason for NSInteger being typedefed int under 32 bit, and
typedefed long under 64 bit? I didn't see why we couldn't just use long
everywhere and be done with it.

Lachlan.

_______________________________________________

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>
References: 
 >Re: How do I get NSRect to be the same as CGRect? (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Need advice on custom view
  • Next by Date: Re: How do I get NSRect to be the same as CGRect?
  • Previous by thread: Re: How do I get NSRect to be the same as CGRect?
  • Next by thread: Re: How do I get NSRect to be the same as CGRect?
  • Index(es):
    • Date
    • Thread