home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7756 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!dtint!usenet
  3. From: nevin@dtint.dtint.com
  4. Subject: Re: How to limit window size of app
  5. Message-ID: <1992Dec15.175215.13932@dtint.uucp>
  6. Sender: usenet@dtint.uucp
  7. Reply-To: nevin@dtint.dtint.com
  8. Organization: Digital Technology, International
  9. References: <1992Dec13.222309.16899@serveme.chi.il.us>
  10. Date: Tue, 15 Dec 92 17:52:15 GMT
  11. Lines: 30
  12.  
  13. In article <1992Dec13.222309.16899@serveme.chi.il.us> datec@gagme.chi.il.us  
  14. (Charles Robinson) writes:
  15. > William Barker (wrb@ulnar.biostr.washington.edu) wrote:
  16. > : Hej,
  17. > : 
  18. > : Hopefully an easy question that I'm too lazy to look up for myself:
  19. > : 
  20. > : How does one limit the size of an app's window?  For example, not letting  
  21. > : the user resize a main window to less than a certain size, or more than a  
  22. > : certain size.
  23. > : 
  24. > : Hope this is an easy one.
  25. > :
  26. > Certainly is --- look at the code in DrawDocument.m method windowDidResize
  27. > in the Draw example. Basically you just apply the constants you want to
  28. > to width & height after the user has made his attempt at resizing. 
  29.  
  30. No, no, no.  This is the old solution.  While this was easy, it is now even  
  31. easier.  Under 3.0, just send the window a '-setMinSize:' message (or  
  32. '-setMaxSize:', whichever is relevant).
  33.  
  34. --
  35. Nevin Pratt, Digital Technology, Int'l    Orem, Ut
  36. NeXTmail preferred, but ONLY at my REAL email address: nevin@dtint.dtint.com
  37.  
  38. -- 
  39. ---
  40. root                                   root@dtint.dtint.com
  41. Digital Technology Int.                (801)226-2984    
  42. 500 W. 1200 South, Orem UT, 84057      FAX (801) 226-8438
  43.