Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!rosie!aozer From: aozer@next.com (Ali Ozer) Newsgroups: comp.sys.next Subject: Re: Base coords to view coords Message-ID: <670@rosie.NeXT.COM> Date: 6 May 91 22:42:58 GMT Article-I.D.: rosie.670 References: <21127@brahms.udel.edu> Sender: news@NeXT.COM Distribution: usa Organization: Next Computer, Inc. Lines: 14 Nntp-Posting-Host: twinpeaks.next.com 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