• 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: Detecting resolution changes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting resolution changes?


  • Subject: Re: Detecting resolution changes?
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 9 Mar 2008 13:53:39 -0500

On Mar 9, 2008, at 10:05 AM, email@hidden wrote:

I want to detect when a screen's resolution has changed, so I can resize and re-center my main window. Does "NSWindowDidChangeScreenProfileNotification" do what i want? If the user moves the window (into a differently-sized widow, causing a change), it looks like I could trap/check at "NSWindowDidChangeScreenNotification". What I wasn't clear about is whether a screen's "profile" included the resolution.

The above notifications seem to be related to the ColorSync profile for the screen, not it's resolution or other attributes.


I think you're interested in the NSApplicationDidChangeScreenParametersNotification notification, which is also delivered via the applicationDidChangeScreenParameters: method of the NSApplication delegate.

-Ken
_______________________________________________

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: 
 >Detecting resolution changes? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: No parent window for sheets?
  • Next by Date: Re: How to get the name of a method at runtime?
  • Previous by thread: Detecting resolution changes?
  • Next by thread: Determining why outline view column editing cancels for no apparent reason
  • Index(es):
    • Date
    • Thread