ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSN-91.tar.gz#/comp-sys-next/1991/May/Base-coords-to-view-coords

This is Base-coords-to-view-coords in view mode; [Up]


Date: Sun 05-May-1991 18:48:54 From: scottsm@brahms.udel.edu (Scott M Stark) Subject: Base coords to view coords I would like to convert a point returned in an NXEvent from its base coordinates to a view coordinate system. There are several routines to covert coords between views and between the screen and base coordinate systems, but I have not found one to covert a base coordinate to a view's coordinate system. I would appreciate any suggestions on how to do this without having to trapse through the view heirarchy. Scott
Date: Sun 06-May-1991 22:42:58 From: aozer@next.com (Ali Ozer) Subject: Re: Base coords to view coords In article <21127@brahms.udel.edu> Scott M Stark writes: >I would like to convert a point returned in an NXEvent from its base >coordinates to a view coordinate system. There are several routines >to covert coords between views and between the screen and base coordinate >systems, but I have not found one to covert a base coordinate to a >view's coordinate system. I would appreciate any suggestions on how to >do this without having to trapse through the view heirarchy. Calling the following method with aView == nil will convert the point from the base coordinate system of the window to the view's coordinate system. - convertPoint:(NXPoint *)aPoint fromView:aView; Ali, Ali_Ozer@NeXT.com

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.