• 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: NSPanel doesn't reposition correctly after screen resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPanel doesn't reposition correctly after screen resize


  • Subject: Re: NSPanel doesn't reposition correctly after screen resize
  • From: Steve Mills <email@hidden>
  • Date: Wed, 04 Sep 2013 11:19:55 -0500

On Sep 3, 2013, at 16:11:01, Lee Ann Rucker <email@hidden> wrote:

> NSWindowDidChangeScreenNotification is sent when the window moves to another screen. NSApplicationDidChangeScreenParametersNotification is when the screen itself changes. You'll probably have to listen to both of them, but they can share code.

I'm on 10.8 and get ONLY NSWindowDidChangeScreenNotification when I change my screen's resolution. NSApplicationDidChangeScreenParametersNotification is not being sent for this change.

> If you look at the result of stringWithSavedFrame, it includes the window's screen frame. This is how restoration (old and new) adjusts when a window restores to a different screen configuration. It wouldn't surprise me if they're keeping the screen frame saved somewhere internally too.

The problem here is that both the window bounds and the screen bounds contained in this value have already been updated after the screen size has been changed. It doesn't contain the previous screen size. I guess I'm going to have to keep some custom data in our own structures to make this work. Phooey. Thanks for trying, though. :)

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157




_______________________________________________

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


References: 
 >NSPanel doesn't reposition correctly after screen resize (From: Steve Mills <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Keary Suska <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Kyle Sluder <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Steve Mills <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Steve Mills <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Lee Ann Rucker <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Steve Mills <email@hidden>)
 >Re: NSPanel doesn't reposition correctly after screen resize (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: Subclassing a View Controller in a Storyboard
  • Next by Date: Re: Why is translatesAutoresizingMaskIntoConstraints on in my storyboard?
  • Previous by thread: Re: NSPanel doesn't reposition correctly after screen resize
  • Next by thread: Re: NSPanel doesn't reposition correctly after screen resize
  • Index(es):
    • Date
    • Thread