Re: Detecting resolution changes?
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