Skip to content

AppKit macOS xcode16.3 b2

Rolf Bjarne Kvinge edited this page Mar 25, 2025 · 2 revisions

#AppKit.framework https://github.com/dotnet/macios/pull/22468

diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h	2025-02-13 06:07:25
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h	2025-02-26 06:45:51
@@ -12,8 +12,6 @@
 #import <Foundation/NSString.h>
 #import <Foundation/NSURL.h>
 #import <CoreFoundation/CFBase.h>
-#import <CoreFoundation/CFCGTypes.h>
-#import <ImageIO/CGImageProperties.h>
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@@ -124,37 +122,13 @@
 
 /* Metadata */
 
-/// A metadata type to detect on the pasteboard, such as content type or image metadata.
+/// A metadata type to detect on the pasteboard.
 typedef NSString * NSPasteboardMetadataType NS_REFINED_FOR_SWIFT NS_TYPED_ENUM API_AVAILABLE(macos(15.4));
 
 /// A metadata type that returns the content type if the pasteboard detects a reference to a file.
 /// @returns UTType value for the detected content type of the file URL, if a file URL type is present.
 APPKIT_EXTERN NSPasteboardMetadataType const NSPasteboardMetadataTypeContentType NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
 
-/// A metadata type that returns the image properties if the pasteboard detects an image file URL or image data. Preference is given to the file, if both are present.
-/// @returns NSPasteboardImageProperties instance, if an image is present.
-APPKIT_EXTERN NSPasteboardMetadataType const NSPasteboardMetadataTypeImageProperties NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
-
-/// The return value for `NSPasteboardMetadataTypeImageProperties`.
-NS_REFINED_FOR_SWIFT
-API_AVAILABLE(macos(15.4))
-@interface NSPasteboardImageProperties : NSObject
-
-/// The image size in pixels. `CGSizeZero` if unknown.
-@property (readonly) CGSize pixelSize;
-
-/// The image resolution in DPI. `CGPointZero` if unknown.
-@property (readonly) CGPoint resolution;
-
-/// The image orientation. `kCGImagePropertyOrientationUp` if unknown.
-@property (readonly) CGImagePropertyOrientation orientation;
-
-/// The image depth in bits per pixel. 0 if unknown.
-@property (readonly) NSUInteger bitsPerPixel;
-
-/// Whether the image has an alpha channel. NO if unknown.
-@property (readonly) BOOL hasAlpha;
-@end
 
 /* Options for prepareForNewContentsWithOptions: */
 
diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h	2025-02-13 06:07:23
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h	2025-02-26 06:45:49
@@ -58,7 +58,7 @@
 #endif
 
 @property BOOL allowsWritingTools API_AVAILABLE(macos(15.2)); // Default is YES. Configures its field editor to work with Writing Tools.
-@property BOOL allowsWritingToolsAffordance API_AVAILABLE(macos(15.4)); // Default is YES.
+@property BOOL allowsWritingToolsAffordance API_AVAILABLE(macos(15.4)); // Default is NO.
 @end
 
 #pragma mark NSTextField NSTouchBar Properties
diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h	2025-02-13 06:07:25
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h	2025-02-26 06:45:51
@@ -120,8 +120,6 @@
 
 - (void)insertAdaptiveImageGlyph:(NSAdaptiveImageGlyph *)adaptiveImageGlyph replacementRange:(NSRange)replacementRange NS_SWIFT_NAME(insert(_:replacementRange:)) API_AVAILABLE(macos(15.0));
 
-@property (readonly) BOOL allowsWritingToolsAffordance API_AVAILABLE(macos(15.4)); // Default is automatic if not implemented.
-
 @end
 
 API_UNAVAILABLE_END
diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2025-02-13 06:07:25
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2025-02-26 06:45:51
@@ -434,7 +434,6 @@
 @property NSWritingToolsBehavior writingToolsBehavior API_AVAILABLE(macos(15.0));
 @property NSWritingToolsResultOptions allowedWritingToolsResultOptions API_AVAILABLE(macos(15.0));
 
-@property BOOL allowsWritingToolsAffordance API_AVAILABLE(macos(15.4)); // Default is YES.
 @end
 
 @interface NSTextView (NSTextChecking)
diff -ruN /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h
--- /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2025-02-13 06:07:26
+++ /Applications/Xcode_16.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2025-02-26 06:45:52
@@ -464,8 +464,9 @@
 
 @property (readonly) BOOL worksWhenModal;
 
-/*! Normally, application termination is prohibited when a modal window or sheet is open, without consulting the application delegate.  Some windows like the open panel or toolbar customization sheet should not prevent application termination.  `-setPreventsApplicationTerminationWhenModal:NO` on a modal window or sheet will override the default behavior and allow application termination to proceed, either through the sudden termination path if enabled, or on to the next step of consulting the application delegate.  By default, `-preventsApplicationTerminationWhenModal` returns \c YES
- */
+/// A Boolean value that indicates whether or not to prevent application termination when the receiving window is presented modally.
+/// The value of this property is `YES` if the window should prevent application termination when modal; otherwise, `NO`.
+/// The default value is `YES`. However, note that some window subclasses and some windows created indirectly (like those created by UI frameworks like AppKit and SwiftUI), may have different default values. For example, the Open panel and toolbar customization sheets should not prevent application termination, so those windows have `preventsApplicationTerminationWhenModal` set to `NO`. Some `NSAlert`s, like those that are simply informational, have windows that do not prevent application termination by default. Setting this property overrides the default behavior.
 @property BOOL preventsApplicationTerminationWhenModal API_AVAILABLE(macos(10.6));
 
 /* Methods to convert window coordinates to screen coordinates */
Clone this wiki locally