Re: Bounds questions
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