• 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: Getting NSView mousedown event postion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSView mousedown event postion?


  • Subject: Re: Getting NSView mousedown event postion?
  • From: Andy Lee <email@hidden>
  • Date: Tue, 10 Sep 2002 14:54:00 -0400

At 6:49 PM +0200 9/10/02, Aidas Dailide wrote:
Hi,

How could i get mouse down event position in NSView? NSEvents locationInWindow function doesn't help because it get's position in window, not in NSView.

How about:

NSPoint locationInView =
[myView convertPoint:[theEvent locationInWindow]
fromView:[[myView window] contentView]];

--Andy
_______________________________________________
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.

References: 
 >Getting NSView mousedown event postion? (From: Aidas Dailide <email@hidden>)

  • Prev by Date: Re: Getting NSView mousedown event postion?
  • Next by Date: Re: file extensions
  • Previous by thread: Re: Getting NSView mousedown event postion?
  • Next by thread: Re: Getting NSView mousedown event postion?
  • Index(es):
    • Date
    • Thread