Re: Cocoa not multi-monitor friendly
Re: Cocoa not multi-monitor friendly
- Subject: Re: Cocoa not multi-monitor friendly
- From: Dave Camp <email@hidden>
- Date: Tue, 22 Oct 2002 08:45:00 -0700
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.
Dave
On Tuesday, October 22, 2002, at 03:16 AM, Steve Gehrman wrote:
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.
How can I disable this? This is super annoying. There doesn't seem to
be a simple way of hacking this either since makeKeyAndOrderFront
doesn't call the normal NSWindow calls to change the origin. It just
changes it and puts it on the screen. I could obviously do some skanky
hack by rembering the frame before makeKeyAndOrderFront and resetting
it before the window is shown, but that seems stupid.
-steve
_______________________________________________
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.
---
Among the chief weapons of UNIX: Fear, surprise and ruthless
efficiency.
_______________________________________________
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.