home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6100 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  938 b 

  1. Path: sparky!uunet!gatech!prism!xray.gatech.edu!cc100aa
  2. From: cc100aa@xray.gatech.edu (Ray Spalding)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: how to scroll a view on demand?
  5. Keywords: scroll, IB
  6. Message-ID: <67974@hydra.gatech.EDU>
  7. Date: 10 Sep 92 21:30:17 GMT
  8. References: <1992Sep10.070945.13964@urz.unibas.ch>
  9. Sender: news@prism.gatech.EDU
  10. Organization: Georgia Institute of Technology
  11. Lines: 15
  12.  
  13. In article <1992Sep10.070945.13964@urz.unibas.ch> frank@ifi.unibas.ch writes:
  14. >How do I tell the scrollview (per software) to scroll to the top of the view?
  15.  
  16.     id clipview;
  17.     NXPoint pt;
  18.     
  19.     pt.x = pt.y = 0;    // assumes flipped coordinates (0 at top)
  20.     clipview = [[scrollview docView] superview];
  21.     [clipview rawScroll:&pt];
  22.     [scrollview reflectScroll:clipview];
  23.  
  24. -- 
  25. Ray Spalding, Office of Information Technology
  26. Georgia Institute of Technology, Atlanta Georgia, 30332-0715
  27. Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
  28.