Getting X and Y from CGPoint?

Discussion in 'Mac Programming' started by Buschmaster, Apr 9, 2008.

  1. macrumors 65816

    Buschmaster

    Joined:
    Feb 12, 2006
    Location:
    Minnesota
    #1
    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!
     
  2. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    What about this: In XCode, type CGPoint. Select it. Right-click and "Show Definition". Does that answer your question?
     
  3. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    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.
     
  4. thread starter macrumors 65816

    Buschmaster

    Joined:
    Feb 12, 2006
    Location:
    Minnesota
    #4
    Thanks, I was unaware of this feature.

    It will be very helpful in the future.

    Thanks.

    :)
     

Share This Page