CGFloat is a double now?

5 views
Skip to first unread message

Rick Mann

unread,
Mar 30, 2012, 7:47:43 PM3/30/12
to Quartz Dev List List
So, I've been doing mostly iOS dev for a while. Just started a new OS X project, and I'm rather surprised to see that CGFloats are now doubles. Wow, really? Guess it was a mistake to use "float" in a lot of my code.

--
Rick


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (Quart...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartz-dev/quartz-dev-garchive-50095%40googlegroups.com

This email sent to quartz-dev-g...@googlegroups.com

Derek Clegg

unread,
Mar 30, 2012, 7:49:13 PM3/30/12
to Rick Mann, Quartz Dev List List
CGFloat has been double in 64-bit since 64-bit first began.

Derek

On Mar 30, 2012, at 4:47 PM, Rick Mann <rm...@latencyzero.com> wrote:

> So, I've been doing mostly iOS dev for a while. Just started a new OS X project, and I'm rather surprised to see that CGFloats are now doubles. Wow, really? Guess it was a mistake to use "float" in a lot of my code.
>
> --
> Rick
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartz-dev mailing list (Quart...@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:

> https://lists.apple.com/mailman/options/quartz-dev/dclegg%40apple.com
>
> This email sent to dcl...@apple.com

Troy Koelling

unread,
Mar 30, 2012, 8:17:11 PM3/30/12
to Rick Mann, Quartz Dev List List
On Mar 30, 2012, at 4:47 PM, Rick Mann <rm...@latencyzero.com> wrote:

So, I've been doing mostly iOS dev for a while. Just started a new OS X project, and I'm rather surprised to see that CGFloats are now doubles. Wow, really? Guess it was a mistake to use "float" in a lot of my code.

Be sure to check out the handy CGFLOAT_IS_DOUBLE macro

George Toledo

unread,
Mar 30, 2012, 8:21:15 PM3/30/12
to Troy Koelling, Rick Mann, Quartz Dev List List
Handy as heck!

:-)

-gt

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (Quart...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
Reply all
Reply to author
Forward
0 new messages