• 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: Move window to second display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move window to second display


  • Subject: Re: Move window to second display
  • From: Scott Ribe <email@hidden>
  • Date: Wed, 16 Jul 2008 10:15:47 -0600
  • Thread-topic: Move window to second display

> The window frame origin is a position relative to the screen origin.
>
> Try this:
>
> screenRect.origin = NSZeroPoint;
> [win setFrame:screenRect display:YES];

No, that will just position the window on the main screen. If the window
frame origin were relative to the screen origin rather than the whole space,
then there would be no way using setFrame to move a window to a different
screen.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Move window to second display
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Re: Move window to second display (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Setting Core Data attribute values to related entity attribute values
  • Next by Date: NSButton alternate image problem - not redrawing
  • Previous by thread: Re: Move window to second display
  • Next by thread: Re: Move window to second display
  • Index(es):
    • Date
    • Thread