Mouse click inside NSView
Mouse click inside NSView
- Subject: Mouse click inside NSView
- From: Aaron Boothello <email@hidden>
- Date: Wed, 10 Dec 2003 02:55:31 +0800
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.
_______________________________________________
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.