Is there a way to be notified when the graphic card is switched?

Some flags in CGDisplayRegisterReconfigurationCallback perhaps?

I am trying to keep track if physical displays on multi-screen systems.

With NSScreen, the screen number will change if for example the user has a
laptop with an external screen. If the external screen has the menu bar,
then it is 1 and the laptop is 2, but unplug the external screen and the
laptop becomes #1.

Similarly with CGDisplayIDs, those change when the graphic card switches.

So how can I detect graphic card switches?

Thanks,

Trygve



_______________________________________________

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 arch...@mail-archive.com

Reply via email to