🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2076

Re: How to limit window size of app

#2076
From: nevin
Date: Tue, 15 Dec 1992 17:52
30 lines
1631 bytes
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
Technical Details
Message-ID: <1992Dec15.175215.13932@dtint.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtint!usenet
References: <1992Dec13.222309.16899@serveme.chi.il.us>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!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