Skip to content

AppKit macOS xcode16.0 b4

Rolf Bjarne Kvinge edited this page Aug 28, 2024 · 3 revisions

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

diff -ruN /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h
--- /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h	2024-07-02 02:27:36
+++ /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h	2024-07-17 01:44:53
@@ -39,6 +39,23 @@
     NSWritingToolsBehaviorLimited,
 } API_AVAILABLE(macos(15.0));
 
+typedef NS_OPTIONS(NSUInteger, NSWritingToolsResultOptions) {
+    // System—defined behavior
+    NSWritingToolsResultDefault = 0,
+
+    // Writing Tools will provide plain text in proofreading suggestions or rewrites
+    NSWritingToolsResultPlainText = 1 << 0,
+
+    // as well as plain text, Writing Tools will provide text attributes in proofreading suggestions or rewrites that are natively supported or known to be easily adopted (such as lists)
+    NSWritingToolsResultRichText = 1 << 1,
+
+    // implies `RichText`, and Writing Tools may provide attributes for list layout
+    NSWritingToolsResultList = 1 << 2,
+
+    // implies `RichText`, and Writing Tools may provide attributes for tabular layout
+    NSWritingToolsResultTable = 1 << 3,
+} API_AVAILABLE(macos(15.0));
+
 typedef NS_OPTIONS(NSUInteger, NSWritingToolsAllowedInputOptions) {
     // System—defined behavior
     NSWritingToolsAllowedInputOptionsDefault = 0,
@@ -54,7 +71,7 @@
 
     // implies `RichText`, and Writing Tools may provide attributes for tabular layout
     NSWritingToolsAllowedInputOptionsTable = 1 << 3,
-} API_AVAILABLE(macos(15.0));
+} API_DEPRECATED_WITH_REPLACEMENT("NSWritingToolsResultOptions", macos(15.0, API_TO_BE_DEPRECATED));
 
 @protocol NSTextInputTraits
 @optional
@@ -72,7 +89,8 @@
 @property NSTextInputTraitType mathExpressionCompletionType API_AVAILABLE(macos(15.0));
 
 @property NSWritingToolsBehavior writingToolsBehavior API_AVAILABLE(macos(15.0));
-@property NSWritingToolsAllowedInputOptions writingToolsAllowedInputOptions API_AVAILABLE(macos(15.0));
+@property NSWritingToolsResultOptions allowedWritingToolsResultOptions API_AVAILABLE(macos(15.0));
+@property NSWritingToolsAllowedInputOptions writingToolsAllowedInputOptions API_DEPRECATED_WITH_REPLACEMENT("allowedWritingToolsResultOptions", macos(15.0, API_TO_BE_DEPRECATED));
 @end
 
 @protocol NSTextCheckingClient <NSTextInputClient, NSTextInputTraits>
diff -ruN /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h
--- /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2024-07-02 02:27:33
+++ /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2024-07-17 01:44:49
@@ -432,7 +432,8 @@
 @property(nonatomic,readonly,getter=isWritingToolsActive) BOOL writingToolsActive API_AVAILABLE(macos(15.0));
 
 @property NSWritingToolsBehavior writingToolsBehavior API_AVAILABLE(macos(15.0));
-@property NSWritingToolsAllowedInputOptions writingToolsAllowedInputOptions API_AVAILABLE(macos(15.0));
+@property NSWritingToolsResultOptions allowedWritingToolsResultOptions API_AVAILABLE(macos(15.0));
+@property NSWritingToolsAllowedInputOptions writingToolsAllowedInputOptions API_DEPRECATED_WITH_REPLACEMENT("allowedWritingToolsResultOptions", macos(15.0, API_TO_BE_DEPRECATED));
 
 @end
 
Clone this wiki locally