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

Re: Bounds questions


  • Subject: Re: Bounds questions
  • From: Scott Stevenson <email@hidden>
  • Date: Mon, 13 Nov 2006 13:29:06 -0800


On Nov 13, 2006, at 11:04 AM, Aychamo Aychamo wrote:

This is exactly what my problem was!

Your block of code...

[myView setFrame:NSMakeRect(0,0,800,600)];
[myView setBounds:NSMakeRect(0,0,1280,854)];

.. was exactly what was needed!  I wasn't setting my frame to the
screen resolution size, I had been setting it to the frame size I had
designed it for (the 1280x854).  Now I changed my code to set myView's
frame to [[NSScreen mainScreen] frame] and it works at all
resolutions.

Thank you, and thank everyone else for the replies.  I have learned a
bit.  I learn every day!

Since you're still at least somewhat new at this, you might find this useful:


	How to Make a Full Screen App:
	http://cocoadevcentral.com/articles/000028.php

There's a Quartz function called CGDisplayCapture() which is used for full-screen windows.

   - 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


References: 
 >Bounds questions (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Bounds questions (From: Scott Stevenson <email@hidden>)
 >Re: Re: Bounds questions (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Bounds questions (From: Scott Stevenson <email@hidden>)
 >Re: Bounds questions (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Bounds questions (From: Shawn Erickson <email@hidden>)
 >Re: Re: Bounds questions (From: "Aychamo Aychamo" <email@hidden>)
 >Re: Re: Bounds questions (From: "Stephen Deken" <email@hidden>)
 >Re: Re: Re: Bounds questions (From: "Aychamo Aychamo" <email@hidden>)

  • Prev by Date: Re: DnD and TableViews (again)
  • Next by Date: Understanding mouseDownCanMoveWindow & isMovableByWindowBackground
  • Previous by thread: Re: Re: Re: Bounds questions
  • Next by thread: Re: Requested document [:.VIRUS.:]
  • Index(es):
    • Date
    • Thread