Documented use of deprecated OS X function.

master
Camilla Berglund ago%!(EXTRA string=11 years)
parent f8d80a936f
commit 3fcc2a6cb2
  1. 2
      src/cocoa_monitor.m

@ -47,6 +47,8 @@ static char* getDisplayName(CGDirectDisplayID displayID)
CFStringRef value;
CFIndex size;
// NOTE: This uses a deprecated function because Apple has
// (as of September 2014) not provided any alternative
info = IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID),
kIODisplayOnlyPreferredName);
names = CFDictionaryGetValue(info, CFSTR(kDisplayProductName));

Loading…
Cancel
Save