How to Know When Screen Configuration Has Changed
How to Know When Screen Configuration Has Changed
- Subject: How to Know When Screen Configuration Has Changed
- From: Henry McGilton <email@hidden>
- Date: Sun, 1 Jun 2003 22:20:17 -0700
Hello All,
I have an application which creates its windows
(programmatically) based on the the visible rectangle
of the screen. The visible rectangle returned by NSScreen
gives you the screen that excludes the area occupied by
the menu bar and the dock.
Here is the problem: the user can arbitrarily (and in quite
a contrary manner) decide to start up System Preferences, and
move the Dock around to suit the user's alleged intelligent
desires. But of course, The User Is King, so us 'umble
'ackers need comply with the desires of the Regal Users.
I would like to know if there is any notification to the
effect that the visible rectangle has changed, or any
delegate methods that I can.
There appears to be nothing in NSScreen, NSWorkspace, or
NSApplication that would have either any delegate methods
or notifications. The closest I got was NSWindow's
windowDidChangeScreen delegate method, but unfortunately,
this is completely silent when the dock moves underneath
the running applications.
Ideas would be appreciated. Having explored most of the
obvious paths, I am thinking in terms of implementing
applicationDidUnhide and then checking if the visible
screen rectangle has changed.
Best Wishes,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.