From 3fcc2a6cb21f3fffc383421e39fe49f499e846b7 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 3 Sep 2014 00:31:39 +0200 Subject: [PATCH] Documented use of deprecated OS X function. --- src/cocoa_monitor.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m index abf66654..19187733 100644 --- a/src/cocoa_monitor.m +++ b/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));