• 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
move application to secondary screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

move application to secondary screen


  • Subject: move application to secondary screen
  • From: Marc Monguio <email@hidden>
  • Date: Thu, 14 Sep 2006 18:40:47 +0200

How can I move the main window of an application to the secondary display programatically?

I've tried the Applescript "tell application "flashprojector" to set position of window 1 to {1234,1234}" without luck. The application doesn't understand Applescript because it's a Flash Projector executable.
I've also tried to replace the main display by the secondary before programatically launching the Flash projector application. The Flash projector should launch in the new main display, afterwards I would change again the main display to get it back to its original position. To do so I tried Quartz CGConfigureDisplayOrigin function, this should enable me to move the display origin so that the secondary display gets the 0,0 and becomes the main screen. No luck either, I can change the display origin of the main screen but it keeps being the main screen (it has the menu bar)
I also saw a DMSetMainDisplay function in the Display Manager Reference but it has been deprecated in Tiger and I don't find a similar one in the Quartz Display Services.


thanks in advance,
Marc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: move application to secondary screen
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: NSTextField not updating NSUserDefaults using bindings
  • Next by Date: Re: POSTing into a server from COCOA
  • Previous by thread: Re: NSBorderlessWindowMask on a sheet
  • Next by thread: Re: move application to secondary screen
  • Index(es):
    • Date
    • Thread