Re: Mouse click inside NSView
Re: Mouse click inside NSView
- Subject: Re: Mouse click inside NSView
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 10 Dec 2003 22:23:38 -0500
See NSView's convertPoint:fromView: method or something similar.
----- Original Message -----
From: "Aaron Boothello" <email@hidden>
To: <email@hidden>
Cc: <email@hidden>
Sent: Tuesday, December 09, 2003 1:55 PM
Subject: Mouse click inside NSView
>
I have a window. on the righthalf is an NSTabView. within the tabView
there is a 'CustomView' (that im drawing OpenGL content into).
>
When i click in the customView, i use NSRect, [NSEvent locationInWindow],
and NSPoint to figure outthe coordinates of the mouse click.
>
>
The [NSEvent locationInWindow], gives me the coordinate of the click
within the entire window. the NSRect gives me the values(origin) of the
TabView. i need to either:
>
1. get the location In NSTabView
>
or
>
2. get the NSRect values of the window itself.
>
>
cause i need to get the same reference point in order to calculate the
location in the custom view ive clicked on.
>
>
Any help would be great.
>
Cheers,
>
Aaron.
>
_______________________________________________
>
mac-opengl mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/mac-opengl
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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.