On Mar 9, 2008, at 10:05 AM, [EMAIL PROTECTED] 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to