Re: A couple questions relevant to games
Re: A couple questions relevant to games
- Subject: Re: A couple questions relevant to games
- From: Daniel Jalkut <email@hidden>
- Date: Mon, 18 Feb 2008 12:22:59 -0500
On Feb 18, 2008, at 10:23 AM, glenn andreas wrote:
The significantly easier way is to use:
[window setContentAspectRatio: 1.0];
(Available from 10.3 on)
I think the aspect ratio setting is not enforced precisely enough or
in enough cases. I've had trouble with it not always working. If I
remember correctly it has shortcomings when it comes to zooming a
window, and perhaps is ignored when setting the frame programatically.
I can't remember all the reasons, but in my crossword solving
application it's important to keep the window a size that allows the
puzzle grid to be an even pixel multiple. I ended up enforcing it in
windowWillResize and windowWillUseStandardFrame.
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden