Cocoa not multi-monitor friendly
Cocoa not multi-monitor friendly
- Subject: Cocoa not multi-monitor friendly
- From: Steve Gehrman <email@hidden>
- Date: Tue, 22 Oct 2002 03:16:55 -0700
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.