• 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: i5 & i7 auto graphics switching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i5 & i7 auto graphics switching


  • Subject: Re: i5 & i7 auto graphics switching
  • From: Trygve Inda <email@hidden>
  • Date: Sat, 18 Sep 2010 04:34:10 +0000
  • Thread-topic: i5 & i7 auto graphics switching

>
> 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 (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: Programmatic View Question
  • Next by Date: [moderator] Re: (no subject)
  • Previous by thread: Re: i5 & i7 auto graphics switching
  • Next by thread: Convert CFURLRef to NSURL
  • Index(es):
    • Date
    • Thread