Re: Re: Bounds questions
Re: Re: Bounds questions
- Subject: Re: Re: Bounds questions
- From: "Aychamo Aychamo" <email@hidden>
- Date: Mon, 13 Nov 2006 07:40:51 -0400
Hi Scott,
Hmm. I looked through NSScreen as well, and the only thing that
looked useful to me was that it can return the size of the screen.
The problem is I can't figure out how to use that to calculate the
correct setBoundsSize to send my main view.
For instance, as I said, my app is designed at 1280x854 resolution.
If I drop my monitor down to 800x600 resolution and use [-
setBoundsSize: NSMakeSize(2050, 1175)] my app's interface will scale
nicely to fit on the 800x600 screen.
What I can't figure out is why I had to set the bounds to 2050, 1175
to make a 1280x854 screen scale to a 800x600 screen. I've got all the
numbers written down, and have been trying to do math on them, but I
can't seem to make the connection (admittedly, math is my weak
subject. [as is splelling!])
Thank you
AA
On 11/13/06, Scott Stevenson <email@hidden> wrote:
On Nov 12, 2006, at 8:13 PM, Aychamo Aychamo wrote:
> I want to just scale the screen I have designed to fit
> whatever screen the user uses, at whatever resolution.
I believe NSScreen does what you want.
- Scott
_______________________________________________
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
_______________________________________________
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