What is being switched here? — |
A frivolous name WindowEventWindowStinks for a useful one WindowEventScreenChange — |
In reply to this post by David T Lewis
I love that sentence,but the swithc is missing a — |
In reply to this post by David T Lewis
I noticed the missing — |
In reply to this post by David T Lewis
I think you're being misled by git diffs. here's the actual switch in the source
— |
In reply to this post by David T Lewis
The I would have expected: switch (windowType) {
case SOMETHING:
NSRect frame = [window frame];
NSRect screen = [[window screen] frame];
evt.value1 = frame.origin.x;
evt.value2 = screen.size.height - (frame.size.height + frame.origin.y);
evt.value3 = frame.size.width;
evt.value4 = frame.size.height;
break;
default:
evt.value1 = 0;
evt.value2 = 0;
evt.value3 = 0;
evt.value4 = 0;
} but there is no — |
In reply to this post by David T Lewis
Clearly, some case of — |
In reply to this post by David T Lewis
Doh! Thanks both. — |
Free forum by Nabble | Edit this page |