• 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
NSWindow aspectRatio good for anything?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Class Clusters
  • Next by Date: Re: NSTextStorage Problems - re-post
  • Previous by thread: Re: What's STILL wrong with "symbol" fonts?
  • Next by thread: NSOutlineView init problem
  • Index(es):
    • Date
    • Thread