Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Buschmaster

macrumors 65816
Original poster
Feb 12, 2006
1,306
27
Minnesota
I'm feeling pretty stupid right now because I can't figure out how to get the X and Y from the CGPoint.

Or, is there a way I can make a rectangle starting at a CGPoint?

Thanks!
 
I'm feeling pretty stupid right now because I can't figure out how to get the X and Y from the CGPoint.

Or, is there a way I can make a rectangle starting at a CGPoint?

Thanks!

What about this: In XCode, type CGPoint. Select it. Right-click and "Show Definition". Does that answer your question?
 
point.x and point.y

Don't forget you can search data types in Xcode to find out more.

Edit: Expanding on gnasher729's post you can command-double-click CGPoint and be taken to its definition directly.
 
What about this: In XCode, type CGPoint. Select it. Right-click and "Show Definition". Does that answer your question?
Thanks, I was unaware of this feature.

It will be very helpful in the future.

point.x and point.y

Don't forget you can search data types in Xcode to find out more.

Edit: Expanding on gnasher729's post you can command-double-click CGPoint and be taken to its definition directly.
Thanks.

:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.