• 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
Cocoa not multi-monitor friendly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Cocoa not multi-monitor friendly
      • From: Dave Camp <email@hidden>
  • Prev by Date: Re: Add rtf line to RTF file
  • Next by Date: sinf(), cosf() et al
  • Previous by thread: Cocoa Java: accessing the AddressBook frameworks
  • Next by thread: Re: Cocoa not multi-monitor friendly
  • Index(es):
    • Date
    • Thread