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: Rick Mann <email@hidden>
- Date: Mon, 17 Dec 2007 13:11:43 -0800
On Dec 17, 2007, at 1:04 PM, Sean McBride wrote:
I agree it's unlikely, but the possibility is no doubt the reason for
NSRectToCGRect() existing (it uses the union trick).
I think that means that NSRectToCGRect() must take care to be compiled
with the correct setting of -fstrict-aliasing.
Could you not make your Graphics::Rect class Objective-C++? Just
changing its extension should do the trick.
Perhaps, but it would limit its usefulness. All files that included
the header file would need to use .mm as an extension.
--
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