• 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
Re: detecting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting


  • Subject: Re: detecting
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 28 Sep 2001 09:34:52 +0200

hyperzoanoid,

>>>>>> email@hidden (h) wrote at Sun, 4 Jan 1970 19:19:21 -0600:
h> i need to determine if a click occurs in a area
h> i used an nsrect and the mouse:inrect: method but it doesnt work right.
h> Can someone show me how to do this?

Probably you forgot to translate the mouse coords to your view. See
convertPoint:fromView:
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


  • Prev by Date: Re: Return key in NSTextView
  • Next by Date: Text over graphics
  • Previous by thread: Re: detecting
  • Next by thread: Text over graphics
  • Index(es):
    • Date
    • Thread