-
Notifications
You must be signed in to change notification settings - Fork 543
AppKit macOS xcode26.0 b1
Alex Soto edited this page Jun 9, 2025
·
1 revision
#AppKit.framework
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h 2025-05-01 06:15:12
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h 2025-06-04 00:02:37
@@ -19,6 +19,7 @@
#import <AppKit/NSAppearance.h>
#import <AppKit/NSAppleScriptExtensions.h>
#import <AppKit/NSApplication.h>
+#import <AppKit/NSBackgroundExtensionView.h>
#import <AppKit/NSBox.h>
#import <AppKit/NSButton.h>
#import <AppKit/NSButtonCell.h>
@@ -44,6 +45,7 @@
#import <AppKit/NSFontPanel.h>
#import <AppKit/NSForm.h>
#import <AppKit/NSFormCell.h>
+#import <AppKit/NSGlassEffectView.h>
#import <AppKit/NSMatrix.h>
#import <AppKit/NSMenu.h>
#import <AppKit/NSMenuItem.h>
@@ -107,6 +109,7 @@
#import <AppKit/NSSpellChecker.h>
#import <AppKit/NSSplitView.h>
#import <AppKit/NSSplitViewController.h>
+#import <AppKit/NSSplitViewItemAccessoryViewController.h>
#import <AppKit/NSOpenPanel.h>
#import <AppKit/NSPageLayout.h>
#import <AppKit/NSPanel.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h 2025-05-01 06:15:23
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h 2025-06-04 00:02:51
@@ -89,8 +89,16 @@
APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityContainsProtectedContentAttribute API_AVAILABLE(macos(10.9)); // (NSNumber *) - (boolValue) contains protected content?
APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityAlternateUIVisibleAttribute API_AVAILABLE(macos(10.10)); //(NSNumber *) - (boolValue)
APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityRequiredAttribute API_AVAILABLE(macos(10.12)); //(NSNumber *) - (boolValue) whether a form field is required to have content for successful submission of the form
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityAutoInteractableAttribute; //(NSNumber *) - (boolValue)
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityDateTimeComponentsAttribute; //(NSNumber *) - NSAccessibilityDateTimeComponentsFlags
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityEmbeddedImageDescriptionAttribute API_AVAILABLE(macos(12.0)); //(NSString *) Image Description from IPCT section of metadata
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityPathAttribute API_AVAILABLE(macos(10.9)); //(NSBezierPath *)
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityTextInputMarkedRangeAttribute API_AVAILABLE(macos(10.6)); //(NSValue *) - (rangeValue) range of visible text
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityBlockQuoteLevelAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - 1-based
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityHeadingLevelAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - 1-based
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityLanguageAttribute API_AVAILABLE(macos(26.0)); //(NSString *) - BCP-47 langugage code for the whole object
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityVisitedAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - (boolValue) indicates if a link has been visited
-
/* Linkage attributes
*/
APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityTitleUIElementAttribute; //(id) - UIElement for the title
@@ -140,7 +148,15 @@
APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityLinkTextAttribute; //id - corresponding element
APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityAutocorrectedTextAttribute API_AVAILABLE(macos(10.7)); //(NSNumber *) - (boolValue)
APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityTextAlignmentAttribute API_AVAILABLE(macos(10.12)); //(NSNumber *) - (NSTextAlignment)
+APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityFontBoldAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - (boolValue)
+APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityFontItalicAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - (boolValue)
+/* Advanced children-related attribute and parameterized attributes
+ */
+APPKIT_EXTERN NSAccessibilityAttributeName const NSAccessibilityChildrenInNavigationOrderAttribute API_AVAILABLE(macos(10.12)); //(NSArray *) - ordered children elements for navigation
+APPKIT_EXTERN NSAccessibilityParameterizedAttributeName const NSAccessibilityIndexForChildUIElementAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - 0-based index in NSAccessibilityChildrenAttribute or -1 if not found; param:(id) UIElement
+APPKIT_EXTERN NSAccessibilityParameterizedAttributeName const NSAccessibilityIndexForChildUIElementInNavigationOrderAttribute API_AVAILABLE(macos(26.0)); //(NSNumber *) - 0-based index in NSAccessibilityChildrenInNavigationOrderAttribute or -1 if not found; param:(id) UIElement
+
/* Textual list attributes and constants. Examples: unordered or ordered lists in a document.
*/
APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityListItemPrefixTextAttribute API_AVAILABLE(macos(10.11)); // NSAttributedString, the prepended string of the list item. If the string is a common unicode character (e.g. a bullet •), return that unicode character. For lists with images before the text, return a reasonable label of the image.
@@ -172,6 +188,11 @@
*/
APPKIT_EXTERN NSAttributedStringKey const NSAccessibilityAnnotationTextAttribute API_AVAILABLE(macos(10.13)); //(NSArray *) - (NSDictionary<NSAccessibilityAnnotationAttributeKey, id> *)
+/*
+ Inline Completion
+ */
+APPKIT_EXTERN NSString *const NSAccessibilityTextCompletionAttribute API_AVAILABLE(macos(14.0));
+
typedef NSString * NSAccessibilityAnnotationAttributeKey NS_TYPED_ENUM;
APPKIT_EXTERN NSAccessibilityAnnotationAttributeKey const NSAccessibilityAnnotationLabel API_AVAILABLE(macos(10.13)); // required (NSString *)
APPKIT_EXTERN NSAccessibilityAnnotationAttributeKey const NSAccessibilityAnnotationElement API_AVAILABLE(macos(10.13)); // optional (id) - UIElement for the annotation object
@@ -379,6 +400,7 @@
APPKIT_EXTERN NSAccessibilityActionName const NSAccessibilityRaiseAction;
APPKIT_EXTERN NSAccessibilityActionName const NSAccessibilityShowMenuAction;
APPKIT_EXTERN NSAccessibilityActionName const NSAccessibilityDeleteAction;
+APPKIT_EXTERN NSAccessibilityActionName const NSAccessibilityScrollToVisibleAction API_AVAILABLE(macos(26.0));
/* Actions that allow the developer to present either alternative or original UI. There may be new UI elements that appear. There may be UI elements that disappear. There may be changes to existing UI elements. Or a combination of them. Currently this is typically seen during a mouse hovering event.
*/
@@ -440,6 +462,24 @@
APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityRowExpandedNotification API_AVAILABLE(macos(10.6));
APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityRowCollapsedNotification API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityAutocorrectionOccurredNotification API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityTextInputMarkingSessionBeganNotification API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityTextInputMarkingSessionEndedNotification API_AVAILABLE(macos(10.6));
+
+/* Dragging notifications
+ */
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityDraggingSourceDragBeganNotification
+ API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityDraggingSourceDragEndedNotification
+ API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityDraggingDestinationDropAllowedNotification
+ API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityDraggingDestinationDropNotAllowedNotification
+ API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityDraggingDestinationDragAcceptedNotification API_AVAILABLE(macos(10.6));
+APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityDraggingDestinationDragNotAcceptedNotification
+ API_AVAILABLE(macos(10.6));
+
/* Cell-table notifications
*/
APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilitySelectedCellsChangedNotification API_AVAILABLE(macos(10.6));
@@ -453,7 +493,6 @@
*/
APPKIT_EXTERN NSAccessibilityNotificationName const NSAccessibilityAnnouncementRequestedNotification API_AVAILABLE(macos(10.7));
-
/* Roles
*/
typedef NSString * NSAccessibilityRole NS_TYPED_ENUM;
@@ -506,10 +545,14 @@
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityDisclosureTriangleRole API_AVAILABLE(macos(10.5));
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityGridRole API_AVAILABLE(macos(10.5));
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityRelevanceIndicatorRole;
+APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityDateTimeAreaRole;
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityLevelIndicatorRole API_AVAILABLE(macos(10.6));
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityCellRole API_AVAILABLE(macos(10.6)); // As found in a cell-based table
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityPopoverRole API_AVAILABLE(macos(10.7));
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityPageRole API_AVAILABLE(macos(10.13));
+APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityHeadingRole API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityListMarkerRole API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilityRole const NSAccessibilityWebAreaRole API_AVAILABLE(macos(26.0));
/* Layout-area roles
*/
@@ -552,6 +595,7 @@
APPKIT_EXTERN NSAccessibilitySubrole const NSAccessibilityTabButtonSubrole API_AVAILABLE(macos(10.13));
APPKIT_EXTERN NSAccessibilitySubrole const NSAccessibilityCollectionListSubrole API_AVAILABLE(macos(10.13));
APPKIT_EXTERN NSAccessibilitySubrole const NSAccessibilitySectionListSubrole API_AVAILABLE(macos(10.13));
+APPKIT_EXTERN NSAccessibilitySubrole const NSAccessibilitySuggestionSubrole API_AVAILABLE(macos(26.0));
/* Below are keys used for the user info dictionary of the NSAccessibilityPostNotificationWithUserInfo API */
typedef NSString * NSAccessibilityNotificationUserInfoKey NS_TYPED_ENUM;
@@ -585,6 +629,114 @@
// token type for loading search element
typedef id<NSSecureCoding, NSObject> NSAccessibilityLoadingToken;
+
+
+/* Searching for elements matching a predicate
+ */
+APPKIT_EXTERN NSAccessibilityParameterizedAttributeName const NSAccessibilityUIElementsForSearchPredicateParameterizedAttribute API_AVAILABLE(macos(26.0)); //(NSArray *) - UIElements matching search predicate; param:(NSDictionary *) with NSAccessibilitySearch*Key keys
+
+/*
+ Returns a dictionary with search results for a given search predicate dictionary. The return
+ dictionary uses NSAccessibilitySearchResultElementKey to return a UI element and uses
+ NSAccessibilitySearchResultRangeKey to return a range (NSValue). The search predicate
+ dictionary has several different keys to perform and filter searches. An example of a key is
+ NSAccessibilitySearchIdentifiersKey, which is the name of the category to search.
+ */
+APPKIT_EXTERN NSAccessibilityParameterizedAttributeName const NSAccessibilityResultsForSearchPredicateParameterizedAttribute API_AVAILABLE(macos(10.12));
+
+/*
+ Keys for the search predicate dictionary for use by
+ NSAccessibilityResultsForSearchPredicateParameterizedAttribute
+ */
+// Array of strings of the name of the category to search (e.g. ["Headings", "Bold Text"])
+APPKIT_EXTERN NSString *const NSAccessibilitySearchIdentifiersKey API_AVAILABLE(macos(10.12));
+// UI element that is used as the current item to search before or after
+APPKIT_EXTERN NSString *const NSAccessibilitySearchCurrentElementKey API_AVAILABLE(macos(10.12));
+// Range (NSValue) that is used as the current place to search before or after
+APPKIT_EXTERN NSString *const NSAccessibilitySearchCurrentRangeKey API_AVAILABLE(macos(10.12));
+// String of the direction to search (e.g. NSAccessibilitySearchDirectionNext)
+APPKIT_EXTERN NSString *const NSAccessibilitySearchDirectionKey API_AVAILABLE(macos(10.12));
+// Unsigned integer (NSNumber) of the number of search results to fetch
+APPKIT_EXTERN NSString *const NSAccessibilitySearchResultsLimitKey API_AVAILABLE(macos(10.12));
+// String of the text to filter against. This is used to get type-ahead results. For example,
+// given a list of primary colors and the search text "Re", "Red" could be returned as a result
+APPKIT_EXTERN NSString *const NSAccessibilitySearchTextKey API_AVAILABLE(macos(10.12));
+
+// Values for the NSAccessibilitySearchDirectionKey
+APPKIT_EXTERN NSString *const NSAccessibilitySearchDirectionNext API_AVAILABLE(macos(10.12));
+APPKIT_EXTERN NSString *const NSAccessibilitySearchDirectionPrevious API_AVAILABLE(macos(10.12));
+
+/*
+ Keys for the return search result dictionary for use by
+ NSAccessibilityResultsForSearchPredicateParameterizedAttribute
+ */
+APPKIT_EXTERN NSString *const NSAccessibilitySearchResultElementKey API_AVAILABLE(macos(10.12));
+APPKIT_EXTERN NSString *const NSAccessibilitySearchResultRangeKey API_AVAILABLE(macos(10.12));
+APPKIT_EXTERN NSString *const NSAccessibilitySearchResultDescriptionOverrideKey API_AVAILABLE(macos(10.13));
+APPKIT_EXTERN NSString *const NSAccessibilitySearchResultLoaderKey API_AVAILABLE(macos(10.13));
+
+/* Values for the NSAccessibilitySearchKey key used in
+ NSAccessibilityResultsForSearchPredicateParameterizedAttribute
+ and NSAccessibilityUIElementsForSearchPredicateParameterizedAttribute
+ */
+
+typedef NSString * NSAccessibilitySearchKey NS_TYPED_ENUM;
+
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityAnyTypeSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityArticleSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityBlockquoteSameLevelSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityBlockquoteSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityBoldFontSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityButtonSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityCheckBoxSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityControlSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityDifferentTypeSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityFontChangeSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityFontColorChangeSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityFrameSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityGraphicSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingLevel1SearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingLevel2SearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingLevel3SearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingLevel4SearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingLevel5SearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingLevel6SearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingSameLevelSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityHeadingSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityItalicFontSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityKeyboardFocusableSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityLandmarkSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityLinkSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityListSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityLiveRegionSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityMisspelledWordSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityOutlineSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityPlainTextSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityRadioGroupSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilitySameTypeSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityStaticTextSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityStyleChangeSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityTableSameLevelSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityTableSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityTextFieldSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityTextStateChangeTypeKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityTextStateSyncKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityUnderlineSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityUnvisitedLinkSearchKey API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSAccessibilitySearchKey const NSAccessibilityVisitedLinkSearchKey API_AVAILABLE(macos(26.0));
+
+/* Returned by NSAccessibilityDateTimeComponentsAttribute
+ */
+typedef NSUInteger NSAccessibilityDateTimeComponentsFlags;
+enum {
+ /* Time Components */
+ NSAccessibilityHourMinuteDateTimeComponentsFlag = 0x000c,
+ NSAccessibilityHourMinuteSecondDateTimeComponentsFlag = 0x000e,
+
+ /* Date Components */
+ NSAccessibilityYearMonthDateTimeComponentsFlag = 0x00c0,
+ NSAccessibilityYearMonthDayDateTimeComponentsFlag = 0x00e0,
+};
/* Deprecated
*/
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAdaptiveImageGlyph.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAdaptiveImageGlyph.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAdaptiveImageGlyph.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAdaptiveImageGlyph.h 2025-06-04 00:02:44
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSAdaptiveImageGlyph.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSAdaptiveImageGlyph.h
// Text Kit
//
-// Copyright (c) 2024, Apple Inc. All rights reserved.
+// Copyright (c) 2024-2025,Apple Inc. All rights reserved.
//
#import <Foundation/NSAttributedString.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h 2025-05-01 06:15:22
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h 2025-06-04 00:02:50
@@ -204,6 +204,10 @@
@property (getter=isHidden, readonly) BOOL hidden;
@property (getter=isRunning, readonly) BOOL running;
+/// A boolean value indicating whether your application should suppress HDR content based on established policy.
+/// Built-in AppKit components such as NSImageView will automatically behave correctly with HDR content. You should use this value in conjunction with notifications (`NSApplicationShouldBeginSuppressingHighDynamicRangeContentNotification` and `NSApplicationShouldEndSuppressingHighDynamicRangeContentNotification`) to suppress HDR content in your application when signaled to do so.
+@property (readonly) BOOL applicationShouldSuppressHighDynamicRangeContent API_AVAILABLE(macos(26.0));
+
#pragma mark - Activation and Deactivation
- (void)deactivate;
@@ -643,6 +647,9 @@
APPKIT_EXTERN NSNotificationName NSApplicationDidChangeScreenParametersNotification;
APPKIT_EXTERN NSNotificationName NSApplicationProtectedDataWillBecomeUnavailableNotification API_AVAILABLE(macos(12.0));
APPKIT_EXTERN NSNotificationName NSApplicationProtectedDataDidBecomeAvailableNotification API_AVAILABLE(macos(12.0));
+// Notifications that tell an app that it should either begin or end suppressing high dynamic range content.
+APPKIT_EXTERN NSNotificationName NSApplicationShouldBeginSuppressingHighDynamicRangeContentNotification API_AVAILABLE(macos(26.0));
+APPKIT_EXTERN NSNotificationName NSApplicationShouldEndSuppressingHighDynamicRangeContentNotification API_AVAILABLE(macos(26.0));
#pragma mark - User info keys for NSApplicationDidFinishLaunchingNotification
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h 2025-05-01 06:15:22
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h 2025-06-04 00:02:50
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSAttributedString.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#import <AppKit/AppKitDefines.h>
/*
NSAttributedString.h
- Copyright (c) 1994-2024, Apple Inc.
+ Copyright (c) 1994-2025, Apple Inc.
All rights reserved.
This file defines Application Kit extensions to NSAttributedString and NSMutableAttributedString.
@@ -54,7 +54,7 @@
APPKIT_EXTERN NSAttributedStringKey const NSAdaptiveImageGlyphAttributeName API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0), visionos(2.0)); // NSAdaptiveImageGlyph, default nil
// NSNumber (Boolean) value. Default is false. The range of text with NSWritingToolsExclusionAttributeName=true is excluded from the WritingTools processing and preserved.
-APPKIT_EXTERN NSAttributedStringKey const NSWritingToolsExclusionAttributeName API_AVAILABLE(ios(18.2), macos(15.2)) API_UNAVAILABLE(visionos, tvos, watchos);
+APPKIT_EXTERN NSAttributedStringKey const NSWritingToolsExclusionAttributeName API_AVAILABLE(ios(18.2), macos(15.2), visionos(2.4)) API_UNAVAILABLE(tvos, watchos);
/************************ Attribute values ************************/
// This defines currently supported values for NSUnderlineStyleAttributeName and NSStrikethroughStyleAttributeName. These values are or'ed together to produce an underline style.
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBackgroundExtensionView.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBackgroundExtensionView.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBackgroundExtensionView.h 1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBackgroundExtensionView.h 2025-06-04 00:02:50
@@ -0,0 +1,45 @@
+/*
+ NSBackgroundExtensionView.h
+ Application Kit
+ Copyright (c) 2025, Apple Inc.
+ All rights reserved.
+ */
+
+#import <Foundation/Foundation.h>
+#import <AppKit/NSView.h>
+
+@class CALayer;
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+
+/// A view that extends content to fill its own bounds.
+///
+/// A background extension view can be laid out to extend outside the safe area,
+/// such as under the titlebar, sidebar, or inspector. By default it lays out
+/// its content to stay within the safe area, and uses modifications of the
+/// content along the edges to fill the container view.
+API_AVAILABLE(macos(26.0))
+@interface NSBackgroundExtensionView : NSView
+
+/// The content view to extend to fill the `NSBackgroundExtensionView`.
+///
+/// The content view will be added as a subview of the extension view and
+/// placed within the safe area by default. See `automaticallyPlacesContentView`
+/// to customize the layout.
+@property (nullable, strong) NSView *contentView;
+
+/// Controls the automatic safe area placement of the `contentView` within the
+/// container.
+///
+/// When `NO`, the frame of the content view must be explicitly set or
+/// constraints added. The extension effect will be used to fill the container
+/// view around the content.
+///
+/// Defaults to `YES`.
+@property (nonatomic, assign) BOOL automaticallyPlacesContentView;
+
+@end
+
+API_UNAVAILABLE_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h 2025-06-04 00:02:44
@@ -27,7 +27,7 @@
/* Group subviews with a standard look. This is the default style. */
NSBoxPrimary = 0,
- /* Vertical or horizontal separtor line. Not used with subviews. */
+ /* Vertical or horizontal separator line. Not used with subviews. */
NSBoxSeparator = 2,
/* Custom boxes draw based entirely on user parameters; see the fillColor, borderColor, borderWidth, and cornerRadius properties for more information. */
@@ -73,7 +73,7 @@
@property NSBorderType borderType API_DEPRECATED("borderType is only applicable to NSBoxOldStyle, which is deprecated. To replace a borderType of NSNoBorder, use the `transparent` property.", macos(10.0, 10.15));
-/* Mnemonics are deprecated in 10.8. Historically they have not done anything. For compatability, this method still calls setTitle: with the ampersand stripped from it. */
+/* Mnemonics are deprecated in 10.8. Historically they have not done anything. For compatibility, this method still calls setTitle: with the ampersand stripped from it. */
- (void)setTitleWithMnemonic:(null_unspecified NSString *)stringWithAmpersand API_DEPRECATED("", macos(10.0,10.8));
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h 2025-05-01 06:15:22
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h 2025-06-04 00:02:50
@@ -62,7 +62,10 @@
/// A bezel style that is typically used in table rows to display information about the row, such as a count.
NSBezelStyleBadge API_AVAILABLE(macos(10.7)) = 15,
-
+
+ /// A bezel style with a glass effect
+ NSBezelStyleGlass API_AVAILABLE(macos(26.0)) = 16,
+
NSBezelStyleShadowlessSquare API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleSmallSquare", macos(10.0, API_TO_BE_DEPRECATED)) = 6,
NSBezelStyleTexturedSquare API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleSmallSquare", macos(10.0, API_TO_BE_DEPRECATED)) = 8,
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h 2025-05-01 06:15:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h 2025-06-04 00:02:47
@@ -92,7 +92,8 @@
NSControlSizeRegular = 0,
NSControlSizeSmall = 1,
NSControlSizeMini = 2,
- NSControlSizeLarge API_AVAILABLE(macos(11.0)) = 3
+ NSControlSizeLarge API_AVAILABLE(macos(11.0)) = 3,
+ NSControlSizeExtraLarge API_AVAILABLE(macos(26.0)) = 4,
};
NS_SWIFT_UI_ACTOR
@@ -153,6 +154,7 @@
- (NSRect)imageRectForBounds:(NSRect)rect;
- (NSRect)titleRectForBounds:(NSRect)rect;
- (NSRect)drawingRectForBounds:(NSRect)rect;
++ (NSString *)_bulletStringForString:(NSString *)string bulletCharacter:(unichar)bulletChar;
@property (readonly) NSSize cellSize;
- (NSSize)cellSizeForBounds:(NSRect)rect;
- (nullable NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h 2025-05-01 06:15:22
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h 2025-06-04 00:02:50
@@ -53,7 +53,6 @@
- (void)takeObjectValueFrom:(nullable id)sender;
- (void)takeIntegerValueFrom:(nullable id)sender API_AVAILABLE(macos(10.5));
-- (void)mouseDown:(NSEvent *)event;
- (void)performClick:(nullable id)sender;
/* The following methods apply only to controls with apparent textual content of some sort (buttons with labels, textfields, etc.).
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h 2025-06-04 00:02:46
@@ -60,6 +60,8 @@
NSEventTypeDirectTouch API_AVAILABLE(macos(10.10)) = 37,
NSEventTypeChangeMode API_AVAILABLE(macos(10.15)) = 38,
+
+ NSEventTypeMouseCancelled API_AVAILABLE(macos(26.0)) = 40,
};
static const NSEventType NSLeftMouseDown API_DEPRECATED_WITH_REPLACEMENT("NSEventTypeLeftMouseDown", macos(10.0,10.12)) = NSEventTypeLeftMouseDown;
@@ -127,6 +129,8 @@
NSEventMaskDirectTouch API_AVAILABLE(macos(10.12.2)) = 1ULL << NSEventTypeDirectTouch,
NSEventMaskChangeMode API_AVAILABLE(macos(10.15)) = 1ULL << NSEventTypeChangeMode,
+
+ NSEventMaskMouseCancelled API_AVAILABLE(macos(26.0)) = 1ULL << NSEventTypeMouseCancelled,
NSEventMaskAny = NSUIntegerMax,
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h 2025-05-01 06:15:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h 2025-06-04 00:02:47
@@ -9,6 +9,7 @@
#import <CoreGraphics/CoreGraphics.h>
#import <AppKit/NSTouch.h>
#import <AppKit/AppKitDefines.h>
+#import <AppKit/NSEvent.h>
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@@ -73,6 +74,9 @@
/* individual NSGestureRecognizer subclasses may provide subclass-specific location information. see individual subclasses for details */
- (NSPoint)locationInView:(nullable NSView*)view;
+@property (nullable, copy) NSString *name API_AVAILABLE(macos(26.0));
+@property (readonly) NSEventModifierFlags modifierFlags API_AVAILABLE(macos(26.0));
+
@end
@interface NSGestureRecognizer (NSTouchBar)
@@ -147,6 +151,7 @@
- (void)mouseDragged:(NSEvent *)event;
- (void)rightMouseDragged:(NSEvent *)event;
- (void)otherMouseDragged:(NSEvent *)event;
+- (void)mouseCancelled:(NSEvent *)event API_AVAILABLE(macos(26.0));
- (void)keyDown:(NSEvent *)event;
- (void)keyUp:(NSEvent *)event;
- (void)flagsChanged:(NSEvent *)event;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h 1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h 2025-06-04 00:02:49
@@ -0,0 +1,43 @@
+/*
+ NSGlassEffectView.h
+ Application Kit
+ Copyright (c) 2025, Apple Inc.
+ All rights reserved.
+*/
+
+
+#import <AppKit/NSView.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+
+/*!
+ NSGlassView embeds its content view in a dynamic glass effect.
+ */
+API_AVAILABLE(macos(26.0))
+@interface NSGlassEffectView: NSView
+/// The view to be embedded in glass. Note that only the contentView of the NSGlassView is guaranteed to be placed inside the glass effect. Arbitrary subviews are not guaranteed any specific behavior regarding z-order against the content view or glass effect.
+@property (nullable, strong) __kindof NSView *contentView;
+
+/// Controls the amount of curvature for all corners of the glass.
+@property CGFloat cornerRadius;
+
+/// Modifies the background and effect to tint toward the provided tint color.
+@property (nullable, copy) NSColor *tintColor;
+
+@end
+
+/*!
+ NSGlassContainerView allows similar NSGlassViews in appropriate proximity to eachother to be merged together. Additionally, NSGlassContainerView can reduce the number of passes required to render similar glass views.
+ */
+API_AVAILABLE(macos(26.0))
+@interface NSGlassEffectContainerView: NSView
+/// NSGlassViews that are descendents of an NSGlassContainerView's contentView will 1) have their z-order elevated above that of the contentView 2) if the NSGlassViews are sufficiently similar, they will merge together in close proximity 3) can process similar NSGlassViews as a batch, to improve performance.
+@property (nullable, strong) __kindof NSView *contentView;
+
+/// Controls the proximity at which descendent NSGlassViews will begin merging with eachother, if they are otherwise eligable. The default value (0) is sufficient for batch processing the effects of eligable NSGlassViews, while avoiding distortion and merging effects for views in close proximity.
+@property CGFloat spacing;
+@end
+
+API_UNAVAILABLE_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h 2025-05-01 06:15:22
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h 2025-06-04 00:02:49
@@ -533,6 +533,26 @@
NSImageSymbolScaleLarge = 3,
} NS_SWIFT_NAME(NSImage.SymbolScale) API_AVAILABLE(macos(11.0));
+typedef NS_ENUM(NSInteger, NSImageSymbolVariableValueMode) {
+ /// Automatically selects an appropriate variable value mode for the symbol.
+ NSImageSymbolVariableValueModeAutomatic = 0,
+ /// The "color" variable value mode. Sets the opacity of each variable layer to
+ /// either on or off depending on how its threshold compared to the current value.
+ NSImageSymbolVariableValueModeColor,
+ /// The "draw" variable value mode. Changes the drawn length of each variable layer
+ /// to either based on how its range relates to the current value.
+ NSImageSymbolVariableValueModeDraw,
+} API_AVAILABLE(macos(26.0)) NS_SWIFT_NAME(NSImage.SymbolVariableValueMode) NS_SWIFT_SENDABLE;
+
+typedef NS_ENUM(NSInteger, NSImageSymbolColorRenderingMode) {
+ /// Automatically uses an appropriate color rendering mode for the symbol’s color layers.
+ NSImageSymbolColorRenderingModeAutomatic = 0,
+ /// Renders the symbol’s color layers using flat colors.
+ NSImageSymbolColorRenderingModeFlat,
+ /// Renders the symbol’s color layers using gradients.
+ NSImageSymbolColorRenderingModeGradient,
+} API_AVAILABLE(macos(26.0)) NS_SWIFT_NAME(NSImage.SymbolColorRenderingMode) NS_SWIFT_SENDABLE;
+
API_AVAILABLE(macos(11.0)) NS_SWIFT_NAME(NSImage.SymbolConfiguration)
@interface NSImageSymbolConfiguration : NSObject <NSCopying, NSSecureCoding>
@@ -590,6 +610,16 @@
If the symbol supports neither, the result will be a monochrome (templated) symbol.
*/
+ (instancetype)configurationPreferringMulticolor NS_SWIFT_NAME(preferringMulticolor()) API_AVAILABLE(macos(12.0));
+
+/**
+ Create a configuration with a specified variable value mode.
+ */
++ (instancetype)configurationWithVariableValueMode:(NSImageSymbolVariableValueMode)variableValueMode API_AVAILABLE(macos(26.0));
+
+/**
+ Create a configuration with a specific color rendering mode.
+ */
++ (instancetype)configurationWithColorRenderingMode:(NSImageSymbolColorRenderingMode)mode API_AVAILABLE(macos(26.0));
#pragma mark - Instance Methods
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h 2025-06-04 00:02:46
@@ -199,13 +199,17 @@
/// Creates a palette menu displaying user-selectable color
/// tags using the provided array of colors and optional titles.
+///
+/// Note that the palette menu is configured for display as an inline menu; you must set it as the submenu of another menu item, contained in a standard menu.
+/// The palette menu cannot be used to invoke the `popUpMenuPositioningItem` method, or attached directly to a popup button or toolbar item.
+///
/// @return An autoconfigured palette menu.
+ (instancetype)paletteMenuWithColors:(NSArray<NSColor *> *)colors
titles:(NSArray<NSString *> *)itemTitles
selectionHandler:(nullable void (^)(NSMenu *))onSelectionChange
API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
-/// Creates an palette menu displaying user-selectable color tags
+/// Creates a palette menu displaying user-selectable color tags
/// using the provided template image, tinted using the specified
/// array of colors.
///
@@ -213,6 +217,9 @@
/// the compact menu. The block is invoked after the selection
/// has been updated. Currently selected items can be retrieved
/// from the `selectedItems` property.
+///
+/// Note that the palette menu is configured for display as an inline menu; you must set it as the submenu of another menu item, contained in a standard menu.
+/// The palette menu cannot be used to invoke the `popUpMenuPositioningItem` method, or attached directly to a popup button or toolbar item.
///
/// @return An autoconfigured palette menu.
+ (instancetype)paletteMenuWithColors:(NSArray<NSColor *> *)colors
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h 2025-05-01 06:15:23
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h 2025-06-04 00:02:51
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSParagraphStyle.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#import <AppKit/AppKitDefines.h>
/*
NSParagraphStyle.h
- Copyright (c) 1994-2024, Apple Inc. All rights reserved.
+ Copyright (c) 1994-2025, Apple Inc. All rights reserved.
NSParagraphStyle and NSMutableParagraphStyle hold paragraph style information
NSTextTab holds information about a single tab stop
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h 2025-05-01 06:15:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h 2025-06-04 00:02:47
@@ -241,36 +241,108 @@
/* Detection / Metadata */
-/// Determines whether the first pasteboard item matches the specified patterns, without notifying the user.
-///
-/// Because this method only gives an indication of whether a pasteboard item matches a particular pattern and doesn’t allow the app to access the contents, the system doesn’t notify the user about reading the contents of the pasteboard.
-///
-/// @param patterns The patterns to detect on the pasteboard.
-/// @param completionHandler A block that the system invokes after detecting patterns on the pasteboard. The block receives either a set with the patterns found on the pasteboard or an error if detection failed.
+/// Determines whether the first pasteboard item matches the specified patterns, without notifying the person using the app.
+///
+/// This method only gives an indication of whether the first pasteboard item matches a particular pattern, and doesn’t allow the app to access the item's contents. As a result, the system doesn’t notify the person using the app about reading the contents of the pasteboard.
+///
+/// The following example shows how to use this method to find email and postal addresses in the first pasteboard item:
+///
+/// ```obj-c
+/// [NSPasteboard.generalPasteboard
+/// detectPatternsForPatterns:[NSSet setWithArray:@[NSPasteboardDetectionPatternEmailAddress,
+/// NSPasteboardDetectionPatternPostalAddress]]
+/// completionHandler:^(NSSet<NSPasteboardDetectionPattern> *matchedPatterns, NSError *error) {
+/// if (error) {
+/// NSLog(@"Error: %@", error);
+/// return;
+/// }
+/// BOOL matchedEmail = [matchedPatterns containsObject:NSPasteboardDetectionPatternEmailAddress];
+/// BOOL matchedPostal = [matchedPatterns containsObject: NSPasteboardDetectionPatternPostalAddress];
+/// if (matchedEmail) {
+/// NSLog(@"Email address(es) detected");
+/// }
+/// if (matchedPostal) {
+/// NSLog(@"Postal address(es) detected");
+/// }
+/// if (!matchedEmail && !matchedPostal) {
+/// NSLog(@"Matched neither email nor postal addresses.");
+/// }
+/// }];
+/// ```
+///
+/// - Parameters:
+/// - patterns: The patterns to detect on the pasteboard.
+/// - completionHandler: A block the system invokes after detecting patterns on the pasteboard. The block receives either a set with the patterns the system finds on the pasteboard or an error if detection fails.
- (void)detectPatternsForPatterns:(NSSet<NSPasteboardDetectionPattern> *)patterns
completionHandler:(void(^)(NSSet<NSPasteboardDetectionPattern> * _Nullable detectedPatterns,
NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
/// Determines whether the first pasteboard item matches the specified patterns, reading the contents if it finds a match.
-///
-/// - Important: Calling this method notifies the user that the app has read the contents of the pasteboard, if a match is found.
-///
-/// For details about the types returned for each pattern, see `NSPasteboardDetectionPattern`.
-///
-/// @param patterns The patterns to detect on the pasteboard.
-/// @param completionHandler A block that the system invokes after detecting patterns on the pasteboard. The block returns either dictionary with the patterns found on the pasteboard or an error if detection failed. The dictionary keys specify the matched patterns, and the values specify the corresponding content of the pasteboard.
+///
+/// For details about the types returned for each pattern, see ``NSPasteboardDetectionPattern``.
+///
+/// The following example shows how to use this method to find web URLs and web search terms in the first pasteboard item:
+///
+/// ```obj-c
+/// [NSPasteboard.generalPasteboard
+/// detectValuesForPatterns:[NSSet setWithArray:@[NSPasteboardDetectionPatternProbableWebSearch,
+/// NSPasteboardDetectionPatternProbableWebURL]]
+/// completionHandler:^(NSDictionary<NSPasteboardDetectionPattern, id> *patternValues, NSError *error) {
+/// if (error) {
+/// NSLog(@"Error: %@", error);
+/// return;
+/// }
+/// NSString *searchString = (NSString*)patternValues[NSPasteboardDetectionPatternProbableWebSearch];
+/// NSString *urlString = (NSString*)patternValues[NSPasteboardDetectionPatternProbableWebURL] ;
+/// if (searchString != nil) {
+/// NSLog(@"Web search retrieved: %@", searchString);
+/// }
+/// if (urlString != nil) {
+/// NSLog(@"Web URL retrieved: %@", urlString);
+/// }
+/// if (searchString == nil && urlString == nil) {
+/// NSLog(@"No web patterns retrieved.");
+/// }
+/// }];
+/// ```
+///
+/// > Important: If the system finds a match when calling this method, the system informs the person using the app that the app is trying to read the contents of the pasteboard. If the person denies access to the pasteboard, the completion handler receives an error.
+///
+/// - Parameters:
+/// - patterns: The patterns to detect on the pasteboard.
+/// - completionHandler: A block the system invokes after detecting patterns on the pasteboard. The block returns either a dictionary with the patterns the system finds on the pasteboard or an error if detection fails. The dictionary keys specify the matched patterns and the values specify the corresponding content of the pasteboard.
- (void)detectValuesForPatterns:(NSSet<NSPasteboardDetectionPattern> *)patterns
completionHandler:(void(^)(NSDictionary<NSPasteboardDetectionPattern, id> * _Nullable detectedValues,
NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
-/// Determines available metadata from the specified metadata types for the first pasteboard item, without notifying the user.
-///
-/// Because this method only gives access to limited types of metadata and doesn’t allow the app to access the contents, the system doesn’t notify the user about reading the contents of the pasteboard.
-///
-/// For details about the metadata returned for each type, see `NSPasteboardMetadataType`.
-///
-/// @param types The metadata types to detect on the pasteboard.
-/// @param completionHandler A block that the system invokes after detecting metadata on the pasteboard. The block receives either a dictionary with the metadata types found on the pasteboard or an error if detection failed. The dictionary keys specify the matched metadata types, and the values specify the corresponding metadata.
+/// Determines available metadata from the specified metadata types for the first pasteboard item, without notifying the person using the app.
+///
+/// This method only gives access to limited types of metadata and doesn’t allow the app to access the contents. As a result, the system doesn’t notify the person using the app about reading the contents of the pasteboard.
+///
+/// For details about the metadata returned for each type, see ``NSPasteboardMetadataType``.
+///
+/// The following example shows how to use this method to find the content type of a file reference in the first item on the pasteboard:
+///
+/// ```obj-c
+/// [NSPasteboard.generalPasteboard
+/// detectMetadataForTypes:[NSSet setWithArray:@[NSPasteboardMetadataTypeContentType]]
+/// completionHandler:^(NSDictionary<NSPasteboardMetadataType, id> *metadata, NSError *error) {
+/// if (error) {
+/// NSLog(@"Error: %@", error);
+/// return;
+/// }
+/// UTType *contentType = (UTType*)metadata[NSPasteboardMetadataTypeContentType];
+/// if (contentType) {
+/// NSLog(@"Content type is: %@", contentType.identifier);
+/// } else {
+/// NSLog(@"Couldn't get content type");
+/// }
+/// }];
+/// ```
+///
+/// - Parameters:
+/// - types: The metadata types to detect on the pasteboard.
+/// - completionHandler: A block the system invokes after detecting metadata on the pasteboard. The block receives either a dictionary with the metadata types the system finds on the pasteboard or an error if detection fails. The dictionary keys specify the matched metadata types and the values specify the corresponding metadata.
- (void)detectMetadataForTypes:(NSSet<NSPasteboardMetadataType> *)types
completionHandler:(void(^)(NSDictionary<NSPasteboardMetadataType, id> * _Nullable detectedMetadata,
NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h 2025-06-04 00:02:45
@@ -63,36 +63,123 @@
/* Detection / Metadata */
-/// Determines whether this pasteboard item matches the specified patterns, without notifying the user.
-///
-/// Because this method only gives an indication of whether a pasteboard item matches a particular pattern and doesn’t allow the app to access the contents, the system doesn’t notify the user about reading the contents of the pasteboard.
-///
-/// @param patterns The patterns to detect on the pasteboard item.
-/// @param completionHandler A block that the system invokes after detecting patterns on the pasteboard item. The block receives either a set with the patterns found on the pasteboard item or an error if detection failed.
+/// Determines whether this pasteboard item matches the specified patterns, without notifying the person using the app.
+///
+/// This method only gives an indication of whether a pasteboard item matches a particular pattern and doesn’t allow the app to access the item's contents. As a result, the system doesn’t notify the person using the app about reading the contents of the pasteboard.
+///
+/// The following example shows how to use this method to find email and postal addresses in each item on the pasteboard:
+///
+/// ```obj-c
+/// NSArray<NSPasteboardItem*> *items = NSPasteboard.generalPasteboard.pasteboardItems;
+/// __block NSUInteger idx = 0;
+/// for (NSPasteboardItem *item in items) {
+/// NSUInteger itemIndex = idx++;
+/// [item
+/// detectPatternsForPatterns:[NSSet setWithArray:@[NSPasteboardDetectionPatternEmailAddress,
+/// NSPasteboardDetectionPatternPostalAddress]]
+/// completionHandler:^(NSSet<NSPasteboardDetectionPattern> *matchedPatterns, NSError *error) {
+/// if (error) {
+/// NSLog(@"Item %lu: Error: %@", itemIndex, error);
+/// return;
+/// }
+/// BOOL matchedEmail = [matchedPatterns containsObject:NSPasteboardDetectionPatternEmailAddress];
+/// BOOL matchedPostal = [matchedPatterns containsObject: NSPasteboardDetectionPatternPostalAddress];
+/// if (matchedEmail) {
+/// NSLog(@"Item %lu - Email address(es) detected", itemIndex);
+/// }
+/// if (matchedPostal) {
+/// NSLog(@"Item %lu - Postal address(es) detected", itemIndex);
+/// }
+/// if (!matchedEmail && !matchedPostal) {
+/// NSLog(@"Item %lu - Matched neither email nor postal addresses.", itemIndex);
+/// }
+/// }];
+/// }
+/// ```
+///
+/// - Parameters:
+/// - patterns: The patterns to detect on the pasteboard item.
+/// - completionHandler: A block that the system invokes after detecting patterns on the pasteboard item. The block receives either a set with the patterns the system finds on the pasteboard item or an error if detection fails.
- (void)detectPatternsForPatterns:(NSSet<NSPasteboardDetectionPattern> *)patterns
completionHandler:(void(^)(NSSet<NSPasteboardDetectionPattern> * _Nullable detectedPatterns,
NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
/// Determines whether this pasteboard item matches the specified patterns, reading the contents if it finds a match.
///
-/// - Important: Calling this method notifies the user that the app has read the contents of the pasteboard, if a match is found.
-///
-/// For details about the types returned for each pattern, see `NSPasteboardDetectionPattern`.
-///
-/// @param patterns The patterns to detect on the pasteboard item.
-/// @param completionHandler A block that the system invokes after detecting patterns on the pasteboard item. The block returns either dictionary with the patterns found on the pasteboard item or an error if detection failed. The dictionary keys specify the matched patterns, and the values specify the corresponding content of the pasteboard.
+/// For details about the types returned for each pattern, see ``NSPasteboardDetectionPattern``.
+///
+/// The following example shows how to use this method to find web URLs and web search terms in each item on the pasteboard:
+///
+/// ```obj-c
+/// NSArray<NSPasteboardItem*> *items = NSPasteboard.generalPasteboard.pasteboardItems;
+/// __block NSUInteger idx = 0;
+/// for (NSPasteboardItem *item in items) {
+/// NSUInteger itemIndex = idx++;
+/// [item
+/// detectValuesForPatterns:[NSSet setWithArray:@[NSPasteboardDetectionPatternProbableWebSearch,
+/// NSPasteboardDetectionPatternProbableWebURL]]
+/// completionHandler:^(NSDictionary<NSPasteboardDetectionPattern, id> *patternValues, NSError *error) {
+/// if (error) {
+/// NSLog(@"Item %lu: Error: %@", itemIndex, error);
+/// return;
+/// }
+/// NSString *searchString = (NSString*)patternValues[NSPasteboardDetectionPatternProbableWebSearch];
+/// NSString *urlString = (NSString*)patternValues[NSPasteboardDetectionPatternProbableWebURL] ;
+/// if (searchString != nil) {
+/// NSLog(@"Item %lu - Web search retrieved: %@", itemIndex, searchString);
+/// }
+/// if (urlString != nil) {
+/// NSLog(@"Item %lu - Web URL retrieved: %@", itemIndex, urlString);
+/// }
+/// if (searchString == nil && urlString == nil) {
+/// NSLog(@"Item %lu - No web patterns retrieved.", itemIndex);
+/// }
+/// }];
+/// }
+/// ```
+///
+/// > Important: If the system finds a match when calling this method, the system informs the person using the app that the app is trying to read the contents of the pasteboard. If the person denies access to the pasteboard, the completion handler receives an error.
+///
+/// - Parameters:
+/// - patterns: The patterns to detect on the pasteboard item.
+/// - completionHandler: A block the system invokes after detecting patterns on the pasteboard item. The block returns either a dictionary with the patterns the system finds on the pasteboard item or an error if detection fails. The dictionary keys specify the matched patterns, and the values specify the corresponding content of the pasteboard.
- (void)detectValuesForPatterns:(NSSet<NSPasteboardDetectionPattern> *)patterns
completionHandler:(void(^)(NSDictionary<NSPasteboardDetectionPattern, id> * _Nullable detectedValues,
NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
-/// Determines available metadata from the specified metadata types for this pasteboard item, without notifying the user.
-///
-/// Because this method only gives access to limited types of metadata and doesn’t allow the app to access the contents, the system doesn’t notify the user about reading the contents of the pasteboard.
-///
-/// For details about the metadata returned for each type, see `NSPasteboardMetadataType`.
-///
-/// @param types The metadata types to detect on the pasteboard item.
-/// @param completionHandler A block that the system invokes after detecting metadata on the pasteboard item. The block receives either a dictionary with the metadata types found on the pasteboard item or an error if detection failed. The dictionary keys specify the matched metadata types, and the values specify the corresponding metadata.
+/// Determines available metadata from the specified metadata types for this pasteboard item, without notifying the person using the app.
+///
+/// This method only gives access to limited types of metadata and doesn’t allow the app to access the contents. As a result, the system doesn’t notify the person using the app about reading the contents of the pasteboard.
+///
+/// For details about the metadata returned for each type, see ``NSPasteboardMetadataType``.
+///
+/// The following example shows how to iterate over each pasteboard item and, if the item is a URL that points to a file, get its content type with this method:
+///
+/// ```obj-c
+/// NSArray<NSPasteboardItem*> *items = NSPasteboard.generalPasteboard.pasteboardItems;
+/// __block NSUInteger idx = 0;
+/// for (NSPasteboardItem *item in items) {
+/// NSUInteger itemIndex = idx++;
+/// [item
+/// detectMetadataForTypes:[NSSet setWithArray:@[NSPasteboardMetadataTypeContentType]]
+/// completionHandler:^(NSDictionary<NSPasteboardMetadataType, id> *metadata, NSError *error) {
+/// if (error) {
+/// NSLog(@"Item %lu - Error: %@", itemIndex, error);
+/// return;
+/// }
+/// UTType *contentType = (UTType*)metadata[NSPasteboardMetadataTypeContentType];
+/// if (contentType) {
+/// NSLog(@"Item %lu - Content type is: %@", itemIndex, contentType.identifier);
+/// } else {
+/// NSLog(@"Item %lu - Couldn't get content type", itemIndex);
+/// }
+/// }];
+/// }
+/// ```
+///
+/// - Parameters:
+/// - types: The metadata types to detect on the pasteboard item.
+/// - completionHandler: A block the system invokes after detecting metadata on the pasteboard item. The block receives either a dictionary with the metadata types the system finds on the pasteboard item or an error if detection fails. The dictionary keys specify the matched metadata types, and the values specify the corresponding metadata.
- (void)detectMetadataForTypes:(NSSet<NSPasteboardMetadataType> *)types
completionHandler:(void(^)(NSDictionary<NSPasteboardMetadataType, id> * _Nullable detectedMetadata,
NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(15.4));
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h 2025-05-01 06:15:17
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h 2025-06-04 00:02:42
@@ -35,6 +35,7 @@
- (void)otherMouseUp:(NSEvent *)event;
- (void)mouseMoved:(NSEvent *)event;
- (void)mouseDragged:(NSEvent *)event;
+- (void)mouseCancelled:(NSEvent *)event API_AVAILABLE(macos(26.0)) NS_SWIFT_NAME(mouseCancelled(with:));
- (void)scrollWheel:(NSEvent *)event;
- (void)rightMouseDragged:(NSEvent *)event;
- (void)otherMouseDragged:(NSEvent *)event;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h 2025-06-04 00:02:45
@@ -50,7 +50,7 @@
@property (nullable, copy) NSUserInterfaceItemIdentifier identifier;
/**
- `NSSavePanel`/`NSOpenPanel`: Sets and returns the directory that is displayed. Set to `nil` to display the default directory. This method will not block to resolve the URL, and the directory will asyncronously be set, if required.
+ `NSSavePanel`/`NSOpenPanel`: Sets and returns the directory that is displayed. Set to `nil` to display the default directory. This method will not block to resolve the URL, and the directory will asynchronously be set, if required.
- Note: Can only be set during the configuration phase.
*/
@property (nullable, copy) NSURL *directoryURL API_AVAILABLE(macos(10.6));
@@ -170,8 +170,8 @@
/**
`NSSavePanel`: Whether or not to show a control for selecting the type of the saved file.
The control shows the types in `allowedContentTypes`. Default is `NO`.
- - Note: If @c allowedContentTypes is empty, the control is not displayed.
`NSOpenPanel`: Not used.
+ - Note: If `allowedContentTypes` is empty, the control is not displayed.
*/
@property BOOL showsContentTypes API_AVAILABLE(macos(15.0));
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h 2025-06-04 00:02:44
@@ -13,6 +13,7 @@
#import <Foundation/NSNotification.h>
#import <AppKit/NSGraphics.h>
#import <AppKit/AppKitDefines.h>
+#import <CoreGraphics/CGDirectDisplay.h>
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@@ -62,6 +63,9 @@
/* The following two rects are at the top of the screen, outside the rectangle defined by safeAreaInsets, but also unobscured. These rects are empty if there are no additional unobscured areas */
@property (readonly) NSRect auxiliaryTopLeftArea API_AVAILABLE(macos(12.0));
@property (readonly) NSRect auxiliaryTopRightArea API_AVAILABLE(macos(12.0));
+
+/// The CGDirectDisplayID for this screen. This will return kCGNullDirectDisplay if there isn't one.
+@property (readonly) CGDirectDisplayID CGDirectDisplayID API_AVAILABLE(macos(26.0)) NS_REFINED_FOR_SWIFT;
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h 2025-06-04 00:02:46
@@ -18,6 +18,9 @@
@property double minValue;
@property double maxValue;
+
+/*! The value this slider will be filled from. This slider will be filled from its `neutralValue` to its current value. If `neutralValue` has not been explicitly set before, access to `neutralValue` will return `minValue`. */
+@property double neutralValue API_AVAILABLE(macos(26.0));
@property double altIncrementValue;
@property (readonly) CGFloat knobThickness;
- (BOOL)acceptsFirstMouse:(nullable NSEvent *)event;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h 2025-05-01 06:15:21
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h 2025-06-04 00:02:49
@@ -13,7 +13,7 @@
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-@class NSViewController;
+@class NSViewController, NSSplitViewItemAccessoryViewController;
typedef NS_ENUM(NSInteger, NSSplitViewItemBehavior) {
NSSplitViewItemBehaviorDefault,
@@ -135,6 +135,24 @@
/// For this value to be applicable, the item's view must be associated with its own titlebar section (see `NSTrackingSeparatorToolbarItem` for more info).
/// The default value is NSTitlebarSeparatorStyleAutomatic. This value is subject to the containing window's preference and can be overridden.
@property NSTitlebarSeparatorStyle titlebarSeparatorStyle API_AVAILABLE(macos(11.0));
+
+/// When YES, other items such as sidebars or inspectors may appear overlaid on top of this item's `viewController` and this item's `safeAreaInsets` will be adjusted with respect to overlaid content. Defaults to `NO`.
+@property BOOL automaticallyAdjustsSafeAreaInsets API_AVAILABLE(macos(26.0));
+
+/// The following methods allow you to add accessory views to the top/bottom of this splitViewItem. See `NSSplitViewItemAccessoryViewController` for more details.
+@property (copy) NSArray<NSSplitViewItemAccessoryViewController *> *topAlignedAccessoryViewControllers API_AVAILABLE(macos(26.0));
+- (void)addTopAlignedAccessoryViewController:(NSSplitViewItemAccessoryViewController *)childViewController API_AVAILABLE(macos(26.0));
+- (void)insertTopAlignedAccessoryViewController:(NSSplitViewItemAccessoryViewController *)childViewController atIndex:(NSInteger)index API_AVAILABLE(macos(26.0));
+
+/// NOTE: you can use this method, or `-removeFromParentViewController:`, whichever is easier.
+- (void)removeTopAlignedAccessoryViewControllerAtIndex:(NSInteger)index API_AVAILABLE(macos(26.0));
+
+@property (copy) NSArray<NSSplitViewItemAccessoryViewController *> *bottomAlignedAccessoryViewControllers API_AVAILABLE(macos(26.0));
+- (void)addBottomAlignedAccessoryViewController:(NSSplitViewItemAccessoryViewController *)childViewController API_AVAILABLE(macos(26.0));
+- (void)insertBottomAlignedAccessoryViewController:(NSSplitViewItemAccessoryViewController *)childViewController atIndex:(NSInteger)index API_AVAILABLE(macos(26.0));
+
+/// NOTE: you can use this method, or `-removeFromParentViewController:`, whichever is easier.
+- (void)removeBottomAlignedAccessoryViewControllerAtIndex:(NSInteger)index API_AVAILABLE(macos(26.0));
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItemAccessoryViewController.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItemAccessoryViewController.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItemAccessoryViewController.h 1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItemAccessoryViewController.h 2025-06-04 00:02:43
@@ -0,0 +1,34 @@
+/*
+ NSSplitViewItemAccessoryViewController.h
+ Application Kit
+ Copyright (c) 2024, Apple Inc.
+ All rights reserved.
+*/
+
+#import <AppKit/NSViewController.h>
+#import <AppKit/AppKitDefines.h>
+#import <AppKit/NSAnimation.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+
+API_AVAILABLE(macos(26.0))
+@interface NSSplitViewItemAccessoryViewController : NSViewController <NSAnimatablePropertyContainer>
+
+/// When set, this property will collapse the accessory view to 0 height (animatable) but not remove it from the window.
+/// Set through the animator object to animate it.
+@property (getter=isHidden) BOOL hidden;
+
+/// Whether or not standard content insets should be applied to the view.
+/// Defaults to YES.
+@property BOOL automaticallyAppliesContentInsets;
+
+- (void)viewWillAppear NS_REQUIRES_SUPER;
+- (void)viewDidAppear NS_REQUIRES_SUPER;
+- (void)viewWillDisappear NS_REQUIRES_SUPER;
+- (void)viewDidDisappear NS_REQUIRES_SUPER;
+
+@end
+
+API_UNAVAILABLE_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h 2025-05-01 06:15:23
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h 2025-06-04 00:02:51
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSStringDrawing.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#import <AppKit/AppKitDefines.h>
/*
NSStringDrawing.h
- Copyright (c) 1994-2024, Apple Inc. All rights reserved.
+ Copyright (c) 1994-2025, Apple Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h 2025-05-01 06:15:23
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h 2025-06-04 00:02:51
@@ -1,5 +1,5 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSText.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#import <AppKit/AppKitDefines.h>
@@ -8,7 +8,7 @@
/*
NSText.h
Application Kit
- Copyright (c) 1994-2024, Apple Inc.
+ Copyright (c) 1994-2025, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h 2025-05-01 06:15:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h 2025-06-04 00:02:46
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextAttachment.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#import <AppKit/AppKitDefines.h>
/*
NSTextAttachment.h
- Copyright (c) 1994-2024, Apple Inc.
+ Copyright (c) 1994-2025, Apple Inc.
All rights reserved.
*/
@@ -30,7 +30,6 @@
@class NSTextAttachmentCell;
@protocol NSTextAttachmentCell;
-
// This protocol defines the interface to attachment objects from NSTextLayoutManager
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0), visionos(1.0))
@protocol NSTextAttachmentLayout <NSObject>
@@ -128,7 +127,6 @@
// Invoked from -[NSTextAttachment attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:]
- (CGRect)attachmentBoundsForAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes location:(id <NSTextLocation>)location textContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)proposedLineFragment position:(CGPoint)position;
@end
-
@interface NSMutableAttributedString (NSMutableAttributedStringAttachmentConveniences)
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h 2025-05-01 06:15:22
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h 2025-06-04 00:02:50
@@ -54,6 +54,9 @@
// implies `RichText`, and Writing Tools may provide attributes for tabular layout
NSWritingToolsResultTable = 1 << 3,
+
+ // implies `RichText`, `List`, and `Table`, and Writing Tools may provide text with presentation intent attributes. Writing Tools will use `NSPresentationIntent` instead of `NSTextList` and `NSTextTable` to represent lists and tables.
+ NSWritingToolsResultPresentationIntent API_AVAILABLE(macos(26.0)) = 1 << 4,
} API_AVAILABLE(macos(15.0));
@protocol NSTextInputTraits
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h 2025-06-04 00:02:44
@@ -1,5 +1,5 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextContainer.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
#import <AppKit/AppKitDefines.h>
@@ -7,7 +7,7 @@
/*
NSTextContainer.h
Application Kit
- Copyright (c) 1994-2024, Apple Inc.
+ Copyright (c) 1994-2025, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h 2025-05-01 06:15:23
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h 2025-06-04 00:02:51
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextContentManager.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextContentManager.h
// Text Kit
//
-// Copyright (c) 2018-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSArray.h>
@@ -127,6 +127,9 @@
@interface NSTextContentStorage : NSTextContentManager <NSTextStorageObserving>
#pragma mark Basic properties
@property (weak, nullable) id <NSTextContentStorageDelegate> delegate;
+
+// When YES, NSTextContentStorage assumes the paragraph with NSTextList includes the text list marker string. Utilizes NSTextList.includesTextListMarkers as the default value.
+@property BOOL includesTextListMarkers API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
#pragma mark Document contents
// The document contents. KVO-compliant
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h 2025-06-04 00:02:44
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextElement.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextElement.h
// Text Kit
//
-// Copyright (c) 2018-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2025, Apple Inc. All rights reserved.
//
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h 2025-06-04 00:02:44
@@ -59,6 +59,21 @@
@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 NO.
+
+/*
+An array of NSStrings that will be animated to cycle through one by one when the textField is first responder.
+No animation happend when there is only string in the array, or when text field is not first responder.
+The text field's placeholderString property points to the first string in placeholderStrings.
+ */
+@property (copy) NSArray<NSString *> *placeholderStrings API_AVAILABLE(macos(26.0));
+
+/*
+An array of NSStrings that will be animated to cycle through one by one when the textField is first responder.
+No animation happend when there is only string in the array, or when text field is not first responder.
+The text field's placeholderString property points to the first string in placeholderStrings.
+ */
+@property (copy) NSArray<NSAttributedString *> *placeholderAttributedStrings API_AVAILABLE(macos(26.0));
+
@end
#pragma mark NSTextField NSTouchBar Properties
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h 2025-06-04 00:02:45
@@ -62,7 +62,7 @@
- (void)performAction:(NSTextFinderAction)op;
- (BOOL)validateAction:(NSTextFinderAction)op;
-/* This property must be set to support the find bar. When the find bar is requested to be shown, NSTextFinder will call -showFindBarView: on the container, passing the view for the find bar, which it should display somewhere that is easily associated with the content being searched. NSScrollView already implements NSTextFinderBarContainer and is an excellent place to display the find bar, in most circumstances. The container may freely modify the find bar view's width and origin, but not its height. If this property is not set, then the find bar cannot be shown. */
+/* This property must be set to support the find bar. When an NSTextFinder instance is requested to display the find bar, it will create a view for the find bar and assign it to the findBarView property of its findBarContainer. The container then owns that view and should make it visible when the container’s findBarVisible property is set to true. The container should implement the findBarViewDidChangeHeight method so it can reposition the find bar when its height changes, usually in response to user action. NSScrollView already implements NSTextFinderBarContainer and is an excellent place to display the find bar, in most circumstances. The container may freely modify the find bar view's width and origin, but not its height. If this property is not set, then the find bar cannot be shown. */
@property (nullable, assign) IBOutlet id <NSTextFinderBarContainer> findBarContainer;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h 2025-06-04 00:02:44
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextLayoutFragment.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextLayoutFragment.h
// Text Kit
//
-// Copyright (c) 2017-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSArray.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h 2025-05-01 06:15:17
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h 2025-06-04 00:02:43
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextLayoutManager.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextLayoutManager.h
// Text Kit
//
-// Copyright (c) 2017-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2025, Apple Inc. All rights reserved.
//
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h 2025-05-01 06:15:21
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h 2025-06-04 00:02:48
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextLineFragment.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextLineFragment.h
// Text Kit
//
-// Copyright (c) 2017-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSArray.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h 2025-05-01 06:15:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h 2025-06-04 00:02:47
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextList.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextList.h
// Text Kit
//
-// Copyright (c) 2004-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2004-2025, Apple Inc. All rights reserved.
#import <Foundation/NSObject.h>
#import <AppKit/AppKitDefines.h>
@@ -61,6 +61,10 @@
// Returns the marker corresponding to itemNumber. itemNumber is ignored if < 1 or isOrdered==NO.
- (NSString *)markerForItemNumber:(NSInteger)itemNumber;
+#pragma mark Marker handling
+// When YES, TextKit includes text list marker in the contents.
+// It is NO by default.
+@property (readonly, class) BOOL includesTextListMarkers API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
@end
NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h 2025-05-01 06:15:17
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h 2025-06-04 00:02:43
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextListElement.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextListElement.h
// Text Kit
//
-// Copyright (c) 2021-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2021-2025, Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h 2025-05-01 06:15:17
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h 2025-06-04 00:02:43
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextRange.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextRange.h
// Text Kit
//
-// Copyright (c) 2018-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSObject.h>
@@ -23,35 +23,93 @@
@end
#pragma mark NSTextRange
-// NSTextRange represents a contiguous range between two locations inside document contents. It consists of the starting location and terminating location. They are the two basic properties, location and endLocation, respectively. The terminating location, endLocation, is directly following the last location in the range. So, a location is contained in a range if (range.location <= location) && (location < range.endLocation).
+/// A class that represents a contiguous range between two locations inside document contents.
+///
+/// An `NSTextRange` consists of the starting and terminating locations. There
+/// the two basic properties: ``location`` and ``endLocation``, respectively.
+/// The terminating ``location``, ``endLocation``, is directly following the
+/// last location in the range. For example, a location contains a range if
+/// `(range.location <= location) && (location < range.endLocation)` is `true`.
API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0), visionos(1.0))
@interface NSTextRange : NSObject
#pragma mark Initialization
// Returns an empty range when endLocation=nil
+/// Creates a new text range with the starting and ending locations you specify.
+///
+/// - Parameters:
+/// - location: The starting location.
+/// - endLocation: The ending location.
- (nullable instancetype)initWithLocation:(id <NSTextLocation>)location endLocation:(nullable id <NSTextLocation>)endLocation NS_DESIGNATED_INITIALIZER;
+
+/// Creates a new text range at the location you specify.
+///
+/// - Parameters:
+/// - location: An ``NSTextLocation``.
- (instancetype)initWithLocation:(id <NSTextLocation>)location;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
#pragma mark Basic properties
-// An empty range when location == endLocation
+/// Returns whether the text range is empty.
@property (readonly, getter=isEmpty) BOOL empty;
-// Represented with the inclusive location and the exclusive endLocation
+/// The starting location of the text range.
@property (strong, readonly) id <NSTextLocation> location;
+/// The ending location of the text range.
@property (strong, readonly) id <NSTextLocation> endLocation;
+/// Compares two text ranges.
+///
+/// - Parameters:
+/// - textRange: The range used to compare against the current range to evaluate for differences.
+///
+/// - Returns: Returns `true` if the ranges are equal.
- (BOOL)isEqualToTextRange:(NSTextRange *)textRange;
#pragma mark Basic operations
+/// Determines if the text location you specify is in the current text range.
+///
+/// - Parameters:
+/// - location: An ``NSTextLocation``.
+///
+/// - Returns: Returns `true` if the location is in the range otherwise `false` .
- (BOOL)containsLocation:(id <NSTextLocation>)location;
+
+/// Determines if the text range you specify is in the current text range.
+///
+/// - Parameters:
+/// - textRange: An ``NSTextRange``.
+///
+/// - Returns: Returns `true` if the range you provide is in the current range; otherwise `false`.
- (BOOL)containsRange:(NSTextRange *)textRange;
+
+/// Determines if two ranges intersect.
+///
+/// - Parameters:
+/// - textRange: The range used to compare against the current range to evaluate for differences.
+///
+/// - Returns: Returns `true` if the ranges intersect.
- (BOOL)intersectsWithTextRange:(NSTextRange *)textRange;
#pragma mark Basic mutations
-// Returns the intersection with textRange. Returns nil when not intersecting.
+/// Returns the range, if any, where two text ranges intersect.
+///
+/// - Parameters:
+/// - textRange: The range used to compare against the current range to evaluate for differences.
+///
+/// - Returns: An
+/// <doc://com.apple.documentation/documentation/foundation/nsrange> that
+/// represents the intersection of the ranges, or `nil` if they don't
+/// intersect.
- (nullable instancetype)textRangeByIntersectingWithTextRange:(NSTextRange *)textRange;
+
+/// Returns a new text range by forming the union with the text range you provide.
+///
+/// - Parameters:
+/// - textRange: The range to use to create the union.
+///
+/// - Returns: An ``NSTextRange`` that represent the union of the two ranges.
- (instancetype)textRangeByFormingUnionWithTextRange:(NSTextRange *)textRange;
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h 2025-05-01 06:15:21
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h 2025-06-04 00:02:48
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextSelection.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextSelection.h
// Text Kit
//
-// Copyright (c) 2018-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSAttributedString.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelectionNavigation.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelectionNavigation.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelectionNavigation.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelectionNavigation.h 2025-06-04 00:02:44
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextSelectionNavigation.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextSelectionNavigation.h
// Text Kit
//
-// Copyright (c) 2019-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2019-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSObject.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextViewportLayoutController.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextViewportLayoutController.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextViewportLayoutController.h 2025-05-01 06:15:23
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextViewportLayoutController.h 2025-06-04 00:02:51
@@ -1,12 +1,12 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSTextViewportLayoutController.h>)
-#include <TargetConditionals.h>
+#import <TargetConditionals.h>
#if !TARGET_OS_IPHONE
//
// NSTextViewportLayoutController.h
// Text Kit
//
-// Copyright (c) 2017-2024, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2025, Apple Inc. All rights reserved.
//
#import <Foundation/NSObject.h>
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTitlebarAccessoryViewController.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTitlebarAccessoryViewController.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTitlebarAccessoryViewController.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTitlebarAccessoryViewController.h 2025-06-04 00:02:44
@@ -41,7 +41,7 @@
*/
@property CGFloat fullScreenMinHeight;
-/* Indicates whether the accessory view is actually visible in the window. This property only applies to controllers set with the top or bottom layoutAtribute. When set, this property will collapse the accessory view to 0 height (animatable) but NOT remove it from the window. That way, you can easily show and hide it without difficulty. Set through the animator object to animate it. */
+/* Indicates whether the accessory view is actually visible in the window. This property only applies to controllers set with the top or bottom layoutAttribute. When set, this property will collapse the accessory view to 0 height (animatable) but NOT remove it from the window. That way, you can easily show and hide it without difficulty. Set through the animator object to animate it. */
@property (getter=isHidden) BOOL hidden API_AVAILABLE(macos(10.12));
/* Whether the accessory should automatically size to the standard system default sizing over the view's current frame size.
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h 2025-05-01 06:15:19
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h 2025-06-04 00:02:45
@@ -16,8 +16,16 @@
#import <Foundation/Foundation.h>
#import <Foundation/NSGeometry.h>
+// Visual styles for the toolbar item.
+typedef NS_ENUM(NSInteger, NSToolbarItemStyle) {
+ // A plain style maintains the item’s standard appearance.
+ NSToolbarItemStylePlain,
+ // A prominent style enhances the item’s relevance and visibility, akin to a “Done” button
+ NSToolbarItemStyleProminent,
+} NS_SWIFT_NAME(NSToolbarItem.Style) API_AVAILABLE(macos(26.0), ios(26.0));
+
#if TARGET_OS_IPHONE
-@class UIImage;
+@class UIImage, UIColor;
#endif
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@@ -126,6 +134,22 @@
Defaults to NO.
*/
@property (getter=isBordered) BOOL bordered API_AVAILABLE(macos(10.15), ios(13.0));
+
+/**
+ A color applied to tint the background of the toolbar item only if the item's style is prominent.
+ */
+#if !TARGET_OS_IPHONE
+@property (nullable, copy) NSColor* backgroundTintColor API_AVAILABLE(macos(26.0));
+#else
+@property (nullable, copy) UIColor* backgroundTintColor API_AVAILABLE(ios(26.0));
+#endif
+
+/**
+ Defines the toolbar item’s appearance. The default style is plain.
+ Prominent style tints the background. If a background tint color is set, it uses it; otherwise, it uses the app’s or system’s accent color. If grouped with other items,
+ it moves to its own to avoid tinting other items' background.
+ */
+@property NSToolbarItemStyle style API_AVAILABLE(macos(26.0), ios(26.0));
/**
Whether or not the item behaves as a navigation item (i.e. back/forward) in the toolbar.
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h 2025-05-01 06:15:21
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h 2025-06-04 00:02:49
@@ -574,6 +574,13 @@
@end
+@interface NSView (NSCompactControlSizeMetrics)
+/// When this property is true, any NSControls in the view or its descendants will be sized with compact
+/// metrics compatible with macOS 15 and earlier.
+/// Defaults to false
+@property BOOL prefersCompactControlSizeMetrics API_AVAILABLE(macos(26.0));
+@end
+
@interface NSView(NSTrackingArea)
/* The following methods are meant to be invoked, and probably don't need to be overridden
*/
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h 2025-05-01 06:15:18
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h 2025-06-04 00:02:44
@@ -392,6 +392,9 @@
/// consideration when determining this value.
@property (readonly) NSWritingToolsResultOptions resultOptions; // Returns a nonzero value after considering system information along with the value of preferredResultOptions
+// When YES, the Writing Tools subsystem interprets and generates the text list paragraph incorporating the text list marker string. By default, it employs ``NSTextList.includesTextListMarkers`` as the value.
+@property BOOL includesTextListMarkers API_AVAILABLE(macos(26.0));
+
/// Informs the coordinator about changes your app made to the text
/// in the specified context object.
///
@@ -1001,7 +1004,7 @@
/// starts at character `100` in your text storage, and an interaction occurs
/// with the character at location `102`, specify a range with a location of
/// `2` and a length of `1`.
-- (void)writingToolsCoordinator:(NSWritingToolsCoordinator *)writingToolsCoordinator requestsRangeInContextWithIdentifierForPoint:(NSPoint)point completion:(void(^)(NSRange range, NSUUID *contextID))completion API_DEPRECATED("Not used anymore", macos(15.2, 15.4)) NS_SWIFT_ASYNC_NAME(writingToolsCoordinator(_:rangeInContextWithIdentifierFor:));
+- (void)writingToolsCoordinator:(NSWritingToolsCoordinator *)writingToolsCoordinator requestsRangeInContextWithIdentifierForPoint:(NSPoint)point completion:(void(^)(NSRange range, NSUUID *contextID))completion API_DEPRECATED("In macOS 15.4 and later, NSWritingToolsCoordinator automatically determines the location of the character at the specified point in your view's coordinate system and no longer calls this method.", macos(15.2, 15.4)) NS_SWIFT_ASYNC_NAME(writingToolsCoordinator(_:rangeInContextWithIdentifierFor:));
@end
#pragma mark NSTextPreview