• 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: Re: Bounds questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bounds questions
      • From: Scott Stevenson <email@hidden>
References: 
 >Bounds questions (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Bounds questions (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: Problem with thread/autorelease pool .
  • Next by Date: Re: Bounds questions
  • Previous by thread: Re: Bounds questions
  • Next by thread: Re: Bounds questions
  • Index(es):
    • Date
    • Thread