• 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: Tracking NSPoint in flipped superview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking NSPoint in flipped superview


  • Subject: Re: Tracking NSPoint in flipped superview
  • From: Graham Cox <email@hidden>
  • Date: Wed, 24 Feb 2010 21:16:00 +1100

On 24/02/2010, at 9:12 PM, Nikhil Khandelwal wrote:

> I have override a mouseDown event. Now I am trying to locate the [theEvent locationInWindow] points in the superview which is flipped. So this is giving me just opposite NSpoint so is there any method to flip the points or to check for points in particular view.


Have you tried simply asking the superview to work it out for you?

NSPoint localPt = [theSuperview convertPoint:[theEvent locationInWindow] fromView:nil];

--Graham_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Tracking NSPoint in flipped superview (From: Nikhil Khandelwal <email@hidden>)

  • Prev by Date: Tracking NSPoint in flipped superview
  • Next by Date: Strange behavior of applicationShouldHandleReopen delegate
  • Previous by thread: Tracking NSPoint in flipped superview
  • Next by thread: Strange behavior of applicationShouldHandleReopen delegate
  • Index(es):
    • Date
    • Thread