Re: Resizing question
Re: Resizing question
- Subject: Re: Resizing question
- From: "Clark S. Cox III" <email@hidden>
- Date: Fri, 11 Oct 2002 08:31:29 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, Oct 11, 2002, at 17:10 US/Eastern, Nicholas Francis wrote:
Hi guys...
I want to make a resizing view that has a constrained aspect ratio...
The window looks like this:
+---------+
| |
-=====+
| |
+--------+
the top half of the window is an OpenGLView subclass with a
constrained aspect ratio. In the middle of the window, there is a
splitter, and the bottom is a scroll view.
How do I hook up my resizing so the splitter is moved up and down in
order to maintain the aspect ration of the top view?
If you override -[resizeWithOldSuperviewSize:(NSSize)oldSize] in the
affected views, you can do whatever custom resizing you want.
- --
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj2mxKcACgkQd6STocYT1xXmMACeLVonwGbQVAjNNjs/r2cCwY0y
QAgAoID2ihQEkChQRZr8FxWiRK3zPsbB
=EuNl
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.