• 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
How to get the CGDirectDisplayID?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to get the CGDirectDisplayID?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: windowDidLoad NOT being called?
  • Next by Date: Re: How to get the CGDirectDisplayID?
  • Previous by thread: Re: Showing submenu item in an NSPopUpButton
  • Next by thread: Re: How to get the CGDirectDisplayID?
  • Index(es):
    • Date
    • Thread