home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!dtint!usenet
- From: nevin@dtint.dtint.com
- Subject: Re: How to limit window size of app
- Message-ID: <1992Dec15.175215.13932@dtint.uucp>
- Sender: usenet@dtint.uucp
- Reply-To: nevin@dtint.dtint.com
- Organization: Digital Technology, International
- References: <1992Dec13.222309.16899@serveme.chi.il.us>
- Date: Tue, 15 Dec 92 17:52:15 GMT
- Lines: 30
-
- In article <1992Dec13.222309.16899@serveme.chi.il.us> datec@gagme.chi.il.us
- (Charles Robinson) writes:
- > William Barker (wrb@ulnar.biostr.washington.edu) wrote:
- > : Hej,
- > :
- > : Hopefully an easy question that I'm too lazy to look up for myself:
- > :
- > : How does one limit the size of an app's window? For example, not letting
- > : the user resize a main window to less than a certain size, or more than a
- > : certain size.
- > :
- > : Hope this is an easy one.
- > :
- > Certainly is --- look at the code in DrawDocument.m method windowDidResize
- > in the Draw example. Basically you just apply the constants you want to
- > to width & height after the user has made his attempt at resizing.
-
- No, no, no. This is the old solution. While this was easy, it is now even
- easier. Under 3.0, just send the window a '-setMinSize:' message (or
- '-setMaxSize:', whichever is relevant).
-
- --
- Nevin Pratt, Digital Technology, Int'l Orem, Ut
- NeXTmail preferred, but ONLY at my REAL email address: nevin@dtint.dtint.com
-
- --
- ---
- root root@dtint.dtint.com
- Digital Technology Int. (801)226-2984
- 500 W. 1200 South, Orem UT, 84057 FAX (801) 226-8438
-