Re: How do I get NSRect to be the same as CGRect?
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: "Clark Cox" <email@hidden>
- Date: Sun, 16 Dec 2007 19:48:37 -0800
On Dec 16, 2007 7:41 PM, odela01 <lachlan.o'email@hidden> wrote:
> 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.
Yes.
--
Clark S. Cox III
email@hidden
_______________________________________________
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