• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa not multi-monitor friendly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Cocoa not multi-monitor friendly
      • From: Ali Ozer <email@hidden>
References: 
 >Cocoa not multi-monitor friendly (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Jag Screen Savers not 10.1.x Compatible?
  • Next by Date: Quick Compiler Warning Question
  • Previous by thread: Cocoa not multi-monitor friendly
  • Next by thread: Re: Cocoa not multi-monitor friendly
  • Index(es):
    • Date
    • Thread