NSWindow aspectRatio good for anything?
NSWindow aspectRatio good for anything?
- Subject: NSWindow aspectRatio good for anything?
- From: Nicholas Riley <email@hidden>
- Date: Thu, 27 Jun 2002 02:25:26 -0500
- Mail-followup-to: email@hidden
Hi,
I'm writing an app which has a window that displays an image.
Resizing the window lets you scale the image. I set up the window
like this:
[imageWindow setContentSize: size];
frameSize = [imageWindow frame].size;
[imageWindow setMaxSize: frameSize];
[imageWindow setAspectRatio: frameSize];
The only problem is that when I use setAspectRatio, the aspect ratio
applies to the entire window including frame, not just its contents.
I can't imagine why this would be useful; it seems much more useful if
the content size could have an aspect ratio set.
Before I file a bug claiming this is the wrong behavior, has anyone
found a case where having the aspect ratio include the frame be of any
use?
Thanks,
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.