Re: getting a list of connected displays
Re: getting a list of connected displays
- Subject: Re: getting a list of connected displays
- From: Shawn Erickson <email@hidden>
- Date: Thu, 25 Nov 2004 08:56:00 -0800
On Nov 25, 2004, at 2:50 AM, Alex Reynolds wrote:
Can anyone provide advice on how to get a list of monitor models connected to the system programatically?
For example, on my Mac, I have an Apple Studio Display and a Dell 1504FP.
These device names are listed in the Displays system preference applet. I would like to get these model names into an array or dictionary so that I can use them elsewhere.
Any help would be appreciated!
For device information such as this one can likely mine the ioregistry [1].
As an example...
[G5:~] shawnce% ioreg -c AppleDisplay | grep DisplayVendorID
| | | | "DisplayVendorID" = 1552
| | | | "DisplayVendorID" = 1552
Anyway you can search the ioregistry programatically. See the following links as a starting point...
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Finding_Devices/chapter_4_section_2.html#//apple_ref/doc/uid/TP30000379/TPXREF108>
<http://developer.apple.com/documentation/Darwin/Reference/IOKit/IOKitLib/index.html
>
-Shawn
[1] <http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/TheRegistry/chapter_4_section_1.html#//apple_ref/doc/uid/TP0000014>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden