Cocoa not multi-monitor friendly
Cocoa not multi-monitor friendly
- Subject: Cocoa not multi-monitor friendly
- From: matt neuburg <email@hidden>
- Date: Wed, 23 Oct 2002 18:50:10 -0700
On Tue, 22 Oct 2002 11:19:36 -0700, Ali Ozer <email@hidden> said:
>
>
>> I'm trying to open a window on a second monitor. I'm calling [window
>
>> setFrame:display]. If I have other windows already open, this works
>
>> fine, but if I have no windows open, when I call makeKeyAndOrderFront,
>
>> it will force the window on the main monitor.
>
>
>
> I logged a bug with Apple about this a while back (3054203) which was
>
> marked as Close/Dup....
>
> I found it by dragging the window of any Cocoa app to my second
>
> monitor, quitting, and re-launching. The window always moves back to
>
> the main monitor. I'm guessing the code that checks that windows are
>
> placed on-screen only checks the coordinates against the main monitor,
>
> not all the monitors.
>
>
I believe this bug is limited to windows on the negative screen (if you
>
have a screen which is to the left of the screen with the menu); and
>
also, it only occurs when the window is first being brought up. That
>
is, sending setFrame:display: after the window has been displayed once
>
seems to be OK.
>
>
Assuming this is what you're seeing, clearly one suboptimal workaround
>
would be to move the window after it's come up; but a better one is to
>
make the window non-deferred
And indeed the latter is the very solution I provided when this problem arose previously, in August:
http://cocoa.mamasam.com/COCOADEV/2002/08/2/42650.php
m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.