> > Le 13 sept. 2010 à 17:03, Trygve Inda a écrit : > >> How do I get the CGDirectDisplayID into IORegistryEntryCreateCFProperties? >> >> Is this any different than: >> >> io_service_t servicePort = CGDisplayIOServicePort (myCGDirectDisplayID); >> CFDictionaryRef oldInfoDict = IODisplayCreateInfoDictionary (servicePort, >> kNilOptions); > > > A bit more complicated, sorry > I'm doing it this way > > io_service_t servicePort = CGDisplayIOServicePort(cgID); > io_service_t root = IODisplayForFramebuffer(servicePort, kNilOptions); > NSDictionary* ioRegDict = nil; > IORegistryEntryCreateCFProperties(root, (CFMutableDictionaryRef*)&ioRegDict, > kCFAllocatorDefault, kNilOptions); > > with the IODisplayForFramebuffer function being defined in > IOKitUser/graphics/IODisplayLib.c (it's part of the IOKitUser open source)
How do I link to this? Doing a search of the Frameworks on 10.6, I see no IODisplayForFramebuffer function. Though I do see it in Google. T. _______________________________________________ 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