• 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
mouseDown Event / locationInWindows always returning (0,0)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouseDown Event / locationInWindows always returning (0,0)


  • Subject: mouseDown Event / locationInWindows always returning (0,0)
  • From: luc BARREDA <email@hidden>
  • Date: Tue, 8 Jan 2008 22:53:05 +0100

Hi,

I've a strange problem   under 10.5,

I subclassed a NSView and declared in it :

- (void)mouseDown:(NSEvent *)theEvent
{	 	NSPoint p;

	p = [theEvent locationInWindow];
}

Under the debugger, the event is trapped and the function gets called, theEvent shows a correct mouseDownEvent type (1),
the protected '_location' NSEvent member contains the right mouse coord, window is not nil, everything is OK
BUT locationInWindow always return (0,0)
I browsed the mailing list before posting and tried to make the same thing in a window subclassing, same result


Has somebody a clue before I loose all my hairs? I'd appreciate a lot

Regards
Luc B


_______________________________________________

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


  • Follow-Ups:
    • Re: mouseDown Event / locationInWindows always returning (0,0)
      • From: glenn andreas <email@hidden>
  • Prev by Date: ToolTips and 10.5 (Leopard)
  • Next by Date: Re: mouseDown Event / locationInWindows always returning (0,0)
  • Previous by thread: ToolTips and 10.5 (Leopard)
  • Next by thread: Re: mouseDown Event / locationInWindows always returning (0,0)
  • Index(es):
    • Date
    • Thread