Bounds questions
Bounds questions
- Subject: Bounds questions
- From: "Aychamo Aychamo" <email@hidden>
- Date: Mon, 13 Nov 2006 00:13:50 -0400
Hello everyone,
I have a full screen application, that I've designed for my resolution
(1280x854). I want to just scale the screen I have designed to fit
whatever screen the user uses, at whatever resolution. I've found it
easy to scale my main view by using [myView setBoundsSize:]. It
scales nicely, how I would like.
The problem is, I don't quite understand how "bounds" work. I've
read, and re-read the docs, but something isn't clicking. This
doesn't make sense:
If I use [myView setBoundsSize: NSMakeSize (1280, 854)] obviously the
screen fits perfectly. But, if I use [myView setBoundsSize:
NSMakeSize (2000, 1600)] the screen scales to be smaller (like a
little over half the screen). And if I use [myView setBoundsSize:
NSMakeSize (800, 600)] it scales off the screen (like twice the size.)
I'm trying to find the code necessary to make my app scale to fit the
current resolution. So if my app is run on a 800x600 resolution, it
will scale down to fit that, and it's run on whatever resolution the
30" monitor uses, it will fit that too. It seems that the [view
setBoundsSize] is the correct thing to use, I just don't understand
how to make it scale to the right size.
Thank you
Aychamo Aycono
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden