Skip to content

AppKit macOS xcode14.3 beta3

Alex Soto edited this page Mar 22, 2023 · 2 revisions

#AppKit.framework https://github.com/xamarin/xamarin-macios/pull/17810

diff -ruN /Applications/Xcode_14.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h /Applications/Xcode_14.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h
--- /Applications/Xcode_14.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h	2023-02-24 11:26:12
+++ /Applications/Xcode_14.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h	2023-03-09 18:35:24
@@ -49,6 +49,13 @@
     NSWorkspaceAuthorizationInvalidError API_AVAILABLE(macos(10.14)) = 67328,
     NSWorkspaceErrorMinimum API_AVAILABLE(macos(10.14)) = 67328,
     NSWorkspaceErrorMaximum API_AVAILABLE(macos(10.14)) = 67455,
+
+    // Window Sharing
+    NSWindowSharingRequestAlreadyRequested API_AVAILABLE(macos(13.3)) = 67456,
+    NSWindowSharingRequestNoEligibleSession API_AVAILABLE(macos(13.3)) = 67457,
+    NSWindowSharingRequestUnspecifiedError API_AVAILABLE(macos(13.3)) = 67458,
+    NSWindowSharingErrorMinimum API_AVAILABLE(macos(13.3)) = 67456,
+    NSWindowSharingErrorMaximum API_AVAILABLE(macos(13.3)) = 67466,
 };
 
 API_UNAVAILABLE_END
diff -ruN /Applications/Xcode_14.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h /Applications/Xcode_14.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h
--- /Applications/Xcode_14.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2023-02-24 11:26:17
+++ /Applications/Xcode_14.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2023-03-09 18:35:29
@@ -709,6 +709,24 @@
  */
 @property (readonly, weak) NSWindowTabGroup *tabGroup API_AVAILABLE(macos(10.13));
 
+#pragma mark - Window Sharing
+
+/*!
+     @abstract Attempt to move window sharing (i.e. within a SharePlay session) from the receiver to another window. In response to this request, the user may choose to transfer sharing to the new window, or simply stop sharing the content.
+     @param window
+        A window that is replacing the reciever in representing the user's current activity.
+     @param completionHandler
+        A completion block that is called after the request finishes.
+        @param error
+            In the event of a failed transfer request, a non-nil error contains details about the failure.
+*/
+- (void)transferWindowSharingToWindow:(NSWindow *)window completionHandler:(void(^)(NSError * _Nullable error))completionHandler API_AVAILABLE(macos(13.3));
+
+/*!
+ @abstract Indicates whether the receiver is the subject of an active SharePlay sharing session.
+ */
+@property (readonly) BOOL hasActiveWindowSharingSession API_AVAILABLE(macos(13.3));
+
 #pragma mark - Other
 
 /*! Retrieve the layout direction of the window titlebar: this includes the standard window buttons (close/minimize/maximize buttons) and the title for this window. In general, this will return "right to left" (RTL) if the primary system language is RTL. The layout direction may be RTL even in applications that do not have a RTL language localization. This value should be utilized if an application uses titlebarAppearsTransparent and places controls underneath the titlebar.
Clone this wiki locally