home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!prism!xray.gatech.edu!cc100aa
- From: cc100aa@xray.gatech.edu (Ray Spalding)
- Newsgroups: comp.sys.next.programmer
- Subject: Re: how to scroll a view on demand?
- Keywords: scroll, IB
- Message-ID: <67974@hydra.gatech.EDU>
- Date: 10 Sep 92 21:30:17 GMT
- References: <1992Sep10.070945.13964@urz.unibas.ch>
- Sender: news@prism.gatech.EDU
- Organization: Georgia Institute of Technology
- Lines: 15
-
- In article <1992Sep10.070945.13964@urz.unibas.ch> frank@ifi.unibas.ch writes:
- >How do I tell the scrollview (per software) to scroll to the top of the view?
-
- id clipview;
- NXPoint pt;
-
- pt.x = pt.y = 0; // assumes flipped coordinates (0 at top)
- clipview = [[scrollview docView] superview];
- [clipview rawScroll:&pt];
- [scrollview reflectScroll:clipview];
-
- --
- Ray Spalding, Office of Information Technology
- Georgia Institute of Technology, Atlanta Georgia, 30332-0715
- Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
-