-
Notifications
You must be signed in to change notification settings - Fork 549
AppKit macOS xcode16.0 b4
Alex Soto edited this page Aug 7, 2024
·
3 revisions
#AppKit.framework
diff -ruN /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h
--- /Applications/Xcode_16.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h 2024-07-02 02:27:32
+++ /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h 2024-07-17 01:44:48
@@ -17,13 +17,6 @@
@protocol NSOpenSavePanelDelegate;
@class UTType;
-/** Return codes from the open/save panel.
-*/
-enum {
- NSFileHandlingPanelCancelButton API_DEPRECATED_WITH_REPLACEMENT("NSModalResponseCancel", macos(10.0,10.13)) = NSModalResponseCancel,
- NSFileHandlingPanelOKButton API_DEPRECATED_WITH_REPLACEMENT("NSModalResponseOK", macos(10.0,10.13)) = NSModalResponseOK,
-};
-
@interface NSSavePanel : NSPanel
/**
A note on when properties can be set.
@@ -195,18 +188,18 @@
// MARK: - Displaying/Showing
/**
- `NSSavePanel`/`NSOpenPanel`: Presents the panel as a sheet modal to `window` and returns immediately. Configure the panel before calling this method. The completion handler block will be called after the user has closed the panel, however, the open/save panel sheet may still be on screen. If you require the sheet to be offscreen (for example, to show an alert), first call `[savePanel orderOut:nil]` to close it. The `result` will be `NSModalResponseOK` or `NSModalResponseCancel`.
+ `NSSavePanel`/`NSOpenPanel`: Presents the panel as a sheet modal to `window` and returns immediately. Configure the panel before calling this method. The completion handler block will be called after the user has closed the panel, however, the open/save panel sheet may still be on screen. If you require the sheet to be offscreen (for example, to show an alert), first call `[savePanel orderOut:nil]` to close it. The `result` will be `NSModalResponseOK`, `NSModalResponseCancel`, or if the panel fails to display, `NSModalResponseAbort`.
*/
- (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void (^)(NSModalResponse result))handler API_AVAILABLE(macos(10.6));
/**
- `NSSavePanel`/`NSOpenPanel`: Presents the panel as a modeless window and returns immediately. Configure the panel before calling this method. The completion handler block will be called after the user has closed the panel. The `result` will be `NSModalResponseOK` or `NSModalResponseCancel`.
+ `NSSavePanel`/`NSOpenPanel`: Presents the panel as a modeless window and returns immediately. Configure the panel before calling this method. The completion handler block will be called after the user has closed the panel. The `result` will be `NSModalResponseOK`, `NSModalResponseCancel`, or if the panel fails to display, `NSModalResponseAbort`.
*/
- (void)beginWithCompletionHandler:(void (^)(NSModalResponse result))handler API_AVAILABLE(macos(10.6));
/**
`NSSavePanel`/`NSOpenPanel`: Presents the panel as an application modal window. Returns after the user has closed the panel.
- - Returns: `NSModalResponseOK` or `NSModalResponseCancel`.
+ - Returns: `NSModalResponseOK`, `NSModalResponseCancel` or if the panel fails to display, `NSModalResponseAbort`.
*/
- (NSModalResponse)runModal;
@@ -292,6 +285,11 @@
*/
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
@end
+
+enum {
+ NSFileHandlingPanelCancelButton API_DEPRECATED_WITH_REPLACEMENT("NSModalResponseCancel", macos(10.0,10.13)) = NSModalResponseCancel,
+ NSFileHandlingPanelOKButton API_DEPRECATED_WITH_REPLACEMENT("NSModalResponseOK", macos(10.0,10.13)) = NSModalResponseOK,
+};
API_UNAVAILABLE_END
NS_HEADER_AUDIT_END(nullability, sendability)
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