• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getting a list of connected displays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a list of connected displays


  • Subject: Re: getting a list of connected displays
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 29 Nov 2004 07:18:24 -0800

Actually I believe you may be better served by using Quartz Services now that I think about it (and now that addition items have been exposed in the API as of 10.2).

<http://developer.apple.com/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/index.html>

For example...

<http://developer.apple.com/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/qsref_main/function_group_4.html#//apple_ref/doc/uid/TP30001070-CH201-CGDisplayModelNumber>

-Shawn


On Nov 25, 2004, at 10:23 AM, Alex Reynolds wrote:

Thanks Shawn and Yann,

I guess my problem now is trying to figure out how to get from the IOKit call-equivalent of:

[Sond] reynolda$ ioreg -c AppleDisplay | grep DisplayVendorID
| | | "DisplayVendorID" = 1552
| | | "DisplayVendorID" = 4268
[Sond] reynolda$

to "Apple Studio Display" and "Dell 1504FP".

The files in /System/Library/Displays/Overrides/DisplayVendorID-610 are not in a consistent format as far as the information they return.

There's an entry in there for Apple Studio Display but I can't find anything for non-Apple displays. (I'm guessing that it must be somewhere if the Display system preference knows it.)

-Alex

On Nov 25, 2004, at 11:56 AM, Shawn Erickson wrote:

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
 _______________________________________________
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

References: 
 >getting a list of connected displays (From: Alex Reynolds <email@hidden>)
 >Re: getting a list of connected displays (From: Shawn Erickson <email@hidden>)
 >Re: getting a list of connected displays (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: My bindings-enabled NIB ate itself... ?
  • Next by Date: Sorry for duplicates
  • Previous by thread: Re: getting a list of connected displays
  • Next by thread: NSImage and 8 bit
  • Index(es):
    • Date
    • Thread