• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Resizing question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Resizing question
  • Next by Date: addSubview: positioned:NSWindowBelow relativeTo: don't function
  • Previous by thread: Resizing question
  • Next by thread: addSubview: positioned:NSWindowBelow relativeTo: don't function
  • Index(es):
    • Date
    • Thread