• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
coordinate confusion, please help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coordinate confusion, please help!


  • Subject: coordinate confusion, please help!
  • From: MT <email@hidden>
  • Date: Wed, 14 Jul 2004 21:17:06 +0100

Hi,

I have created a custom view within a scrollview, it has various elements on it which I want to be able to select with the mouse, I have implemented the mouseDown: method and am trying to get the coordinates on the click from the NSEvent that is delivered to it, however the numbers don't make much sense, they seem to be relative to the parent window, or even the whole screen. I have tried using NSView' convertXXX methods, maybe I'm just being thick. but I still can't figure it out.

Basicaly I want a 0,0 coordinate when I click the top-left corner of my view (I am using isFlipped to flip the coordinates), it's in a scrollview, so it can't be based on the position on the screen.

Thanks for any help

Moray
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: coordinate confusion, please help!
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Basic Concepts
  • Next by Date: Re: Different Dictionaries
  • Previous by thread: Re: Basic Concepts
  • Next by thread: Re: coordinate confusion, please help!
  • Index(es):
    • Date
    • Thread