Skip to content

AppKit macOS xcode16.0 b2

Rolf Bjarne Kvinge edited this page Jun 26, 2024 · 3 revisions

#AppKit.framework

diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h	2024-06-01 03:52:53
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h	2024-06-21 06:31:08
@@ -371,11 +371,11 @@
 /* Optional - Column Visibility User Control. Return YES for any column whose visibility is meant to be user-controllable. Implementing this method enables outline view to provide a menu or equivalent UI that allows users to hide or show columns. Any column that is meant to be user-controllable in this way should have a non-empty `.title` property.
  Note: setting the `.menu` property on outlineView's `.headerView` will take precedence over this built-in mechanism.
  */
-- (BOOL)outlineView:(NSOutlineView *)outlineView userCanChangeVisibilityOfTableColumn:(NSTableColumn *)column NS_SWIFT_NAME(outlineView(_:userCanChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
+- (BOOL)outlineView:(NSOutlineView *)outlineView userCanChangeVisibilityOfTableColumn:(NSTableColumn *)column NS_SWIFT_UI_ACTOR NS_SWIFT_NAME(outlineView(_:userCanChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
 
 /* Optional - Column Visibility User Control. Called when the user alters the visibility of one or more columns via the `tableView:userCanChangeVisibilityOfTableColumn:` UI affordance.
  */
-- (void)outlineView:(NSOutlineView *)outlineView userDidChangeVisibilityOfTableColumns:(NSArray <NSTableColumn *> *)columns NS_SWIFT_NAME(outlineView(_:userDidChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
+- (void)outlineView:(NSOutlineView *)outlineView userDidChangeVisibilityOfTableColumns:(NSArray <NSTableColumn *> *)columns NS_SWIFT_NAME(outlineView(_:userDidChangeVisibilityOf:)) NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(14.0));
 
 
 /* Notifications - see comments below for more information about the @"NSObject" parameter in the userInfo dictionary.
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h	2024-06-01 03:52:55
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h	2024-06-21 06:31:11
@@ -49,8 +49,11 @@
     // 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)
     NSWritingToolsAllowedInputOptionsRichText = 1 << 1,
 
-    // implies `RichText`,  and Writing Tools may provide attributes for tabular layout
-    NSWritingToolsAllowedInputOptionsTable = 1 << 2,
+    // implies `RichText`, and Writing Tools may provide attributes for list layout
+    NSWritingToolsAllowedInputOptionsList = 1 << 2,
+
+    // implies `RichText`, and Writing Tools may provide attributes for tabular layout
+    NSWritingToolsAllowedInputOptionsTable = 1 << 3,
 } API_AVAILABLE(macos(15.0));
 
 @protocol NSTextInputTraits
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2024-06-01 03:52:52
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2024-06-21 06:31:07
@@ -430,6 +430,10 @@
 
 #pragma mark WritingTools
 @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));
+
 @end
 
 @interface NSTextView (NSTextChecking)
@@ -555,7 +559,8 @@
 // Renders the text highlight background for NSTextHighlightStyleAttributeName in textRange. origin specifies the coordinate origin in the NSTextContainer coordinate system of the rendering context.
 - (void)drawTextHighlightBackgroundForTextRange:(NSTextRange *)textRange origin:(NSPoint)origin API_AVAILABLE(macos(15.0));
 
-// An action for toggling NSTextHighlightStyleAttributeName in the selected range.
+/// An action for toggling `NSTextHighlightStyleAttributeName` in the receiver’s selected range.
+/// The sender should be a menu item with a `representedObject` of type (`NSTextHighlightColorScheme`).
 - (IBAction)highlight:(nullable id)sender API_AVAILABLE(macos(15.0));
 @end
 
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2024-06-01 03:52:53
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2024-06-21 06:31:09
@@ -109,7 +109,7 @@
  *
  * @discussion You may specify at most one of \c NSWindowCollectionBehaviorParticipatesInCycle or \c NSWindowCollectionBehaviorIgnoresCycle.  If unspecified, the window gets the default behavior determined by its window level.
  *
- * @const NSWindowCollectionBehaviorParticipatesInCycle Default behavior if `windowLevel != NSNormalWindowLevel`.
+ * @const NSWindowCollectionBehaviorParticipatesInCycle Default behavior if `windowLevel == NSNormalWindowLevel`.
  * @const NSWindowCollectionBehaviorIgnoresCycle Default behavior if `windowLevel != NSNormalWindowLevel`.
  *
  * @discussion You may specify at most one of \c NSWindowCollectionBehaviorFullScreenPrimary, \c NSWindowCollectionBehaviorFullScreenAuxiliary, or \c NSWindowCollectionBehaviorFullScreenNone.
@@ -350,6 +350,12 @@
 - (void)setFrameOrigin:(NSPoint)point;
 - (void)setFrameTopLeftPoint:(NSPoint)point;
 - (NSPoint)cascadeTopLeftFromPoint:(NSPoint)topLeftPoint;
+
+/*!
+ @abstract The frame to use when cascading or sizing a new window based on the receiver's position or size. This may be different from `frame` when the receiver is positioned by the system.
+*/
+@property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
+
 @property (readonly) NSRect frame;
 
 /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
Clone this wiki locally