Skip to content

AppKit macOS xcode27.0 b3

Alex Soto edited this page Jul 8, 2026 · 2 revisions

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

diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes	2026-06-18 01:39:14
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes	2026-07-02 00:42:09
@@ -5197,6 +5197,9 @@
   - Name: quaternaryLabelColor
     PropertyKind: Class
     SwiftName: quaternaryLabelColor
+  - Name: quinaryLabelColor
+    PropertyKind: Class
+    SwiftName: quinaryLabelColor
   - Name: scrollBarColor
     PropertyKind: Class
     SwiftName: scrollBarColor
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h	2026-06-18 02:13:45
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h	2026-07-02 01:11:46
@@ -21,9 +21,14 @@
 /// Values for the `preferredImageVisibility` property of NSMenuItem.
 /// When a menu item is initialized, the default value for the item's image visibility is Automatic.
 typedef NS_ENUM(NSInteger, NSMenuItemImageVisibility) {
-    NSMenuItemImageVisibilityAutomatic  = 0,    /// AppKit should choose whether the item's image is visible, considering the system configuration.
-    NSMenuItemImageVisibilityVisible    = 1,    /// The item image should always be visible. Note that in some cases, AppKit may still hide the image, overriding this preference.
-    NSMenuItemImageVisibilityHidden     = 2     /// The item image should not be visible.
+    /// AppKit should choose whether the item's image is visible, considering the system configuration.
+    NSMenuItemImageVisibilityAutomatic  = 0,
+    
+    /// The item image should always be visible. Note that in some cases, AppKit may still hide the image, overriding this preference.
+    NSMenuItemImageVisibilityVisible    = 1,
+    
+    /// The item image should not be visible.
+    NSMenuItemImageVisibilityHidden     = 2
 } API_AVAILABLE(macos(27.0)) NS_SWIFT_NAME(NSMenuItem.ImageVisibility);
 
 #pragma mark - NSMenuItem
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h	2026-06-18 02:13:49
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h	2026-07-02 01:11:49
@@ -594,11 +594,11 @@
     NSRightTabStopType,
     NSCenterTabStopType,
     NSDecimalTabStopType
-};
+} API_DEPRECATED("Use NSTextAlignment-based API.", macos(10.0, API_TO_BE_DEPRECATED));
 
 @interface NSTextTab (NSTextTabDeprecated)
-- (instancetype)initWithType:(NSTextTabType)type location:(CGFloat)loc; // Use -initWithTextAlignment:location:options:
-@property (readonly) NSTextTabType tabStopType; // Use -alignment and -options
+- (instancetype)initWithType:(NSTextTabType)type location:(CGFloat)loc API_DEPRECATED_WITH_REPLACEMENT("-initWithTextAlignment:location:options:", macos(10.0, API_TO_BE_DEPRECATED));
+@property (readonly) NSTextTabType tabStopType API_DEPRECATED("Use -alignment and -options.", macos(10.0, API_TO_BE_DEPRECATED));
 @end
 
 NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h	2026-06-18 02:13:50
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h	2026-07-02 01:11:50
@@ -80,14 +80,14 @@
 /************************ Deprecated ************************/
 // Following NSStringDrawing methods are soft deprecated starting with OS X 10.11. It will be officially deprecated in a future release. Use corresponding API with NSStringDrawingContext instead
 @interface NSString (NSStringDrawingDeprecated)
-- (void)drawWithRect:(NSRect)rect options:(NSStringDrawingOptions)options attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attributes API_DEPRECATED_WITH_REPLACEMENT("-drawWithRect:options:attributes:context:", macos(10.0, 27.0));
+- (void)drawWithRect:(NSRect)rect options:(NSStringDrawingOptions)options attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attributes API_DEPRECATED_WITH_REPLACEMENT("-drawWithRect:options:attributes:context:", macos(10.0, API_TO_BE_DEPRECATED));
 
-- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attributes API_DEPRECATED_WITH_REPLACEMENT("-boundingRectWithSize:options:attributes:context:", macos(10.0, 27.0));
+- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attributes API_DEPRECATED_WITH_REPLACEMENT("-boundingRectWithSize:options:attributes:context:", macos(10.0, API_TO_BE_DEPRECATED));
 @end
 
 @interface NSAttributedString (NSStringDrawingDeprecated)
-- (void)drawWithRect:(NSRect)rect options:(NSStringDrawingOptions)options; // Use -drawWithRect:options:context: instead
-- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options; // Use -boundingRectWithSize:options:context: instead
+- (void)drawWithRect:(NSRect)rect options:(NSStringDrawingOptions)options API_DEPRECATED_WITH_REPLACEMENT("-drawWithRect:options:context:", macos(10.0, API_TO_BE_DEPRECATED));
+- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options  API_DEPRECATED_WITH_REPLACEMENT("-boundingRectWithSize:options:context:", macos(10.0, API_TO_BE_DEPRECATED));
 @end
 NS_HEADER_AUDIT_END(nullability, sendability)
 #endif // !TARGET_OS_IPHONE
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h	2026-06-18 02:13:49
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h	2026-07-02 01:11:49
@@ -185,16 +185,16 @@
 /* Deprecated */
 // The following enum items are deprecated. Use NSTextMovement instead
 enum {
-    NSIllegalTextMovement = 0,
-    NSReturnTextMovement = 0x10,
-    NSTabTextMovement = 0x11,
-    NSBacktabTextMovement = 0x12,
-    NSLeftTextMovement = 0x13,
-    NSRightTextMovement = 0x14,
-    NSUpTextMovement = 0x15,
-    NSDownTextMovement = 0x16,
-    NSCancelTextMovement = 0x17,
-    NSOtherTextMovement = 0
+    NSIllegalTextMovement API_DEPRECATED("", macos(10.0, API_TO_BE_DEPRECATED)) = 0,
+    NSReturnTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementReturn", macos(10.0, API_TO_BE_DEPRECATED)) = 0x10,
+    NSTabTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementTab", macos(10.0, API_TO_BE_DEPRECATED)) = 0x11,
+    NSBacktabTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementBacktab", macos(10.0, API_TO_BE_DEPRECATED)) = 0x12,
+    NSLeftTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementLeft", macos(10.0, API_TO_BE_DEPRECATED)) = 0x13,
+    NSRightTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementRight", macos(10.0, API_TO_BE_DEPRECATED)) = 0x14,
+    NSUpTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementUp", macos(10.0, API_TO_BE_DEPRECATED)) = 0x15,
+    NSDownTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementDown", macos(10.0, API_TO_BE_DEPRECATED)) = 0x16,
+    NSCancelTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementCancel", macos(10.0, API_TO_BE_DEPRECATED)) = 0x17,
+    NSOtherTextMovement API_DEPRECATED_WITH_REPLACEMENT("NSTextMovementOther", macos(10.0, API_TO_BE_DEPRECATED)) = 0
 };
 
 @protocol NSTextDelegate <NSObject>
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h	2026-06-18 02:13:42
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h	2026-07-02 01:11:43
@@ -231,7 +231,7 @@
     NSLineSweepRight    = 1,
     NSLineSweepDown     = 2,
     NSLineSweepUp       = 3
-};
+} API_DEPRECATED("", macos(10.0, API_TO_BE_DEPRECATED));
 
 typedef NS_ENUM(NSUInteger, NSLineMovementDirection) {
     NSLineDoesntMove    = 0,
@@ -239,15 +239,15 @@
     NSLineMovesRight    = 2,
     NSLineMovesDown     = 3,
     NSLineMovesUp       = 4
-};
+} API_DEPRECATED("", macos(10.0, API_TO_BE_DEPRECATED));
 
 @interface NSTextContainer (NSTextContainerDeprecated)
 // Methods names with "containerSize" are soft deprecated starting with OS X 10.11. It will be officially deprecated in a future release
-- (instancetype)initWithContainerSize:(NSSize)aContainerSize; // Use -initWithSize: instead. For binary compatibility, this method now just calls [self initWithSize:]. Also, -init still calls -initWithContainerSize:.
-@property NSSize containerSize; // Use -size instead
+- (instancetype)initWithContainerSize:(NSSize)aContainerSize API_DEPRECATED_WITH_REPLACEMENT("-initWithSize:", macos(10.0, API_TO_BE_DEPRECATED));
+@property NSSize containerSize API_DEPRECATED_WITH_REPLACEMENT("size", macos(10.0, API_TO_BE_DEPRECATED));
 
 // This method is soft deprecated starting with OS X 10.11. It will be officially deprecated in a future release
-- (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect sweepDirection:(NSLineSweepDirection)sweepDirection movementDirection:(NSLineMovementDirection)movementDirection remainingRect:(nullable NSRectPointer)remainingRect; // Use -lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect: instead
+- (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect sweepDirection:(NSLineSweepDirection)sweepDirection movementDirection:(NSLineMovementDirection)movementDirection remainingRect:(nullable NSRectPointer)remainingRect API_DEPRECATED_WITH_REPLACEMENT("-lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:", macos(10.0, API_TO_BE_DEPRECATED));
 
 - (BOOL)containsPoint:(NSPoint)point API_DEPRECATED("", macos(10.0,10.11));
 @end
diff -ruN /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextStorage.h /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextStorage.h
--- /Applications/Xcode_27.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextStorage.h	2026-06-18 02:13:41
+++ /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextStorage.h	2026-07-02 01:11:43
@@ -194,7 +194,7 @@
 
 /**** Deprecations ****/
 // NSTextStorageEditedOptions is deprecated along with -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:. Use NSTextStorageEditActions.
-typedef NSUInteger NSTextStorageEditedOptions;
+typedef NSUInteger NSTextStorageEditedOptions API_DEPRECATED_WITH_REPLACEMENT("NSTextStorageEditActions", macos(10.0, API_TO_BE_DEPRECATED));
 
 @interface NSObject (NSDeprecatedTextStorageDelegateInterface)
 - (void)textStorageWillProcessEditing:(NSNotification *)notification API_DEPRECATED("Use -textStorage:willProcessEditing:range:changeInLength: instead.", macos(10.0,10.11));

Clone this wiki locally