Skip navigation.
 
mlRe: A couple questions relevant to games
FROM : Daniel Jalkut
DATE : Mon Feb 18 18:22:59 2008

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

Related mailsAuthorDate
mlA couple questions relevant to games Aaron MacDonald Feb 17, 16:44
mlRe: A couple questions relevant to games j o a r Feb 17, 18:21
mlRe: A couple questions relevant to games Jens Alfke Feb 17, 23:52
mlRe: A couple questions relevant to games Aaron MacDonald Feb 18, 04:20
mlRe: A couple questions relevant to games j o a r Feb 18, 04:36
mlRe: A couple questions relevant to games Jens Alfke Feb 18, 05:48
mlRe: A couple questions relevant to games glenn andreas Feb 18, 16:23
mlRe: A couple questions relevant to games Daniel Jalkut Feb 18, 18:22
mlRe: A couple questions relevant to games glenn andreas Feb 18, 18:39
mlRe: A couple questions relevant to games j o a r Feb 18, 18:49