Converting Window coord to View coord
Converting Window coord to View coord
- Subject: Converting Window coord to View coord
- From: Hisaoki Nishida <email@hidden>
- Date: Wed, 12 Mar 2003 23:13:31 -0500
I can't seem to find a method in NSWindow that converts its window
coordinates to the coord of the view passed in as argument.
The lack of such method suggests that I am supposed to do this manually?
I can see the method in NSView though:
convertPoint:toView:
- (NSPoint)convertPoint:(NSPoint)aPoint toView:(NSView *)aView
Converts aPoint from the receiver's coordinate system to that of aView.
If aView is nil, this method instead converts to window base
coordinates. Both aView and the receiver must belong to the same
NSWindow. Returns the converted point.
Thanks,
-yuki
_______________________________________________
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.