Skip to content

CoreGraphics macOS xcode15.3 b2

Alex Soto edited this page Feb 8, 2024 · 2 revisions

#CoreGraphics.framework

diff -ruN /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h
--- /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h	2024-01-10 02:11:41
+++ /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h	2024-01-28 23:37:20
@@ -381,7 +381,7 @@
    `displayID'. */
 
 CG_EXTERN CGImageRef __nullable CGDisplayCreateImage(CGDirectDisplayID displayID)
-    CG_AVAILABLE_STARTING(10.6);
+    CG_AVAILABLE_BUT_DEPRECATED(10.6, 14.4, "This API is deprecated. Please use ScreenCaptureKit's captureScreenshot APIs instead.");
 
 /* Return an image containing the contents of the rectangle `rect',
    specified in display space, of the display identified by `displayID'. The
@@ -390,7 +390,7 @@
 
 CG_EXTERN CGImageRef __nullable CGDisplayCreateImageForRect(
     CGDirectDisplayID display, CGRect rect)
-    CG_AVAILABLE_STARTING(10.6);
+    CG_AVAILABLE_BUT_DEPRECATED(10.6, 14.4, "This API is deprecated. Please use ScreenCaptureKit's captureScreenshot APIs instead.");
 
 /* Hide the mouse cursor and increment the hide cursor count. The `display'
    parameter is ignored. */
Clone this wiki locally