How to get the CGDirectDisplayID?
How to get the CGDirectDisplayID?
- Subject: How to get the CGDirectDisplayID?
- From: Andreas Mayer <email@hidden>
- Date: Tue, 26 Apr 2005 02:10:13 +0200
I would like to use some CGDisplay... function to get information about
an NSScreen.
NSScreen's -deviceDescription methods returns a dictionary that,
according to
<http://developer.apple.com/documentation/Cocoa/Conceptual/DrawEnv/
Concepts/devices.html>
has an entry that holds the CGDirectDisplayID:
"@"NSScreenNumber"
An NSNumber that contains the CGDirectDisplayID for the screen device.
This key is only valid for the device description dictionary for an
NSScreen."
That's great, but ... CGDirectDisplayID is declared as:
typedef struct _CGDirectDisplayID * CGDirectDisplayID;
So I guess my question is: How exactly do I get the CGDirectDisplayID
from that NSNumber instance?
Thanks for any insight. :)
Andreas
_______________________________________________
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