-
Notifications
You must be signed in to change notification settings - Fork 518
AppKit macOS xcode15.0 b1
Manuel de la Pena edited this page Aug 17, 2023
·
3 revisions
#AppKit.framework https://github.com/xamarin/xamarin-macios/pull/18762
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes 2023-03-09 00:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes 2023-05-31 08:52:20
@@ -5984,6 +5984,9 @@
- Selector: "sidebarWithViewController:"
MethodKind: Class
SwiftName: init(sidebarWithViewController:)
+ - Selector: "inspectorWithViewController:"
+ MethodKind: Class
+ SwiftName: init(inspectorWithViewController:)
- Name: NSStatusBar
Methods:
- Selector: "removeStatusItem:"
@@ -6091,18 +6094,18 @@
SwiftName: textLayoutFragment(for:)
- Name: NSTextListElement
Methods:
+ - Selector: "childElements"
+ MethodKind: Instance
+ SwiftName: children
- Selector: "initWithParentElement:textList:contents:markerAttributes:childElements:"
MethodKind: Instance
SwiftName: init(parent:textList:contents:markerAttributes:children:)
- - Selector: "textListElementWithContents:markerAttributes:textList:childElements:"
- MethodKind: Class
- SwiftName: init(contents:markerAttributes:textList:children:)
- Selector: "textListElementWithChildElements:textList:nestingLevel:"
MethodKind: Class
SwiftName: init(children:textList:nestingLevel:)
- - Selector: "childElements"
- MethodKind: Instance
- SwiftName: children
+ - Selector: "textListElementWithContents:markerAttributes:textList:childElements:"
+ MethodKind: Class
+ SwiftName: init(contents:markerAttributes:textList:children:)
- Name: NSTextRange
Methods:
- Selector: "containsLocation:"
@@ -10415,6 +10418,8 @@
SwiftName: NSToolbar.didRemoveItemNotification
- Name: NSToolbarFlexibleSpaceItemIdentifier
SwiftName: flexibleSpace
+- Name: NSToolbarInspectorTrackingSeparatorItemIdentifier
+ SwiftName: inspectorTrackingSeparator
- Name: NSToolbarPrintItemIdentifier
SwiftName: print
- Name: NSToolbarSeparatorItemIdentifier
@@ -10427,6 +10432,8 @@
SwiftName: sidebarTrackingSeparator
- Name: NSToolbarSpaceItemIdentifier
SwiftName: space
+- Name: NSToolbarToggleInspectorItemIdentifier
+ SwiftName: toggleInspector
- Name: NSToolbarToggleSidebarItemIdentifier
SwiftName: toggleSidebar
- Name: NSToolbarWillAddItemNotification
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h 2023-03-09 01:14:35
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h 2023-05-31 09:13:35
@@ -1,7 +1,7 @@
/*
AppKit.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
This file is included by all AppKit application source files for easy building. Using this file is preferred over importing individual files because it will use a precompiled version.
@@ -46,6 +46,7 @@
#import <AppKit/NSMatrix.h>
#import <AppKit/NSMenu.h>
#import <AppKit/NSMenuItem.h>
+#import <AppKit/NSMenuItemBadge.h>
#import <AppKit/NSColor.h>
#import <AppKit/NSColorSpace.h>
#import <AppKit/NSBitmapImageRep.h>
@@ -137,7 +138,7 @@
#import <AppKit/NSTextCheckingController.h>
#import <AppKit/NSTextField.h>
#import <AppKit/NSTextFieldCell.h>
-#import <AppKit/NSText.h>
+#import <AppKit/NSTextInsertionIndicator.h>
#import <AppKit/NSTokenField.h>
#import <AppKit/NSTokenFieldCell.h>
#import <AppKit/NSTouchBar.h>
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
AppKitDefines.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
#ifndef _APPKITDEFINES_H
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitErrors.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
AppKitErrors.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSATSTypesetter.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSATSTypesetter.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSATSTypesetter.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSATSTypesetter.h 2023-05-31 09:13:46
@@ -2,14 +2,14 @@
/*
NSATSTypesetter.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSTypesetter.h>
#import <AppKit/NSParagraphStyle.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
NS_AUTOMATED_REFCOUNT_WEAK_UNAVAILABLE
@@ -96,7 +96,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSATSTypesetter.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibility.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibility.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibility.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibility.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSAccessibility.h
Application Kit
- Copyright (c) 2001-2021, Apple Inc.
+ Copyright (c) 2001-2023, Apple Inc.
All rights reserved.
*/
@@ -17,7 +17,7 @@
#import <AppKit/NSWorkspace.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSArray, NSView;
@@ -190,5 +190,5 @@
#endif
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h 2023-05-31 09:13:43
@@ -1,14 +1,14 @@
/*
NSAccessibilityColor.h
Application Kit
- Copyright (c) 2020-2021, Apple Inc.
+ Copyright (c) 2020-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/NSColor.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION
API_AVAILABLE(macos(11.0)) @protocol NSAccessibilityColor
@@ -22,4 +22,4 @@
@interface NSColor (NSAccessibilityColorConformance) <NSAccessibilityColor>
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityConstants.h 2023-05-31 09:13:49
@@ -1,13 +1,13 @@
/*
NSAccessibilityConstants.h
Application Kit
- Copyright (c) 2001-2021, Apple Inc.
+ Copyright (c) 2001-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/AppKitDefines.h>
#import <Foundation/Foundation.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
/*** Exception Constants ***/
@@ -591,4 +591,4 @@
APPKIT_EXTERN NSAccessibilityRole const NSAccessibilitySortButtonRole API_DEPRECATED("", macos(10.4,10.6));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomAction.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomAction.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomAction.h 2023-03-09 19:08:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomAction.h 2023-05-31 09:13:49
@@ -1,13 +1,13 @@
/*
NSAccessibilityCustomAction.h
Application Kit
- Copyright (c) 2017-2021, Apple Inc. All rights reserved.
+ Copyright (c) 2017-2023, Apple Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.13)) @interface NSAccessibilityCustomAction : NSObject
@@ -43,4 +43,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomRotor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomRotor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomRotor.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityCustomRotor.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSAccessibilityCustomRotor.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -23,7 +23,7 @@
* headings.
*/
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAccessibilityCustomRotor;
@@ -233,4 +233,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityElement.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityElement.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityElement.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityElement.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSAccessibilityElement.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
/* An NSAccessibilityElement is used to convey information regarding onscreen UI through the accessibility API for UI that may not already have a single backing object. For example, if a single NSView subclass draws 4 buttons, it would vend 4 NSAccessibilityElements as accessibilityChildren. Note that as long as the UI is around, the vendor of NSAccessibilityElements must maintain ownership of the NSAccessibilityElements. */
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10))
@@ -27,4 +27,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityProtocols.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityProtocols.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityProtocols.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityProtocols.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSAccessibilityProtocols.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
@class NSAccessibilityCustomRotor;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION
@@ -428,6 +428,24 @@
*/
@property (copy) NSArray<NSAccessibilityCustomRotor *> *accessibilityCustomRotors API_AVAILABLE(macos(10.13));
+/*
+ * @brief Returns the localized label(s) that should be provided by the user to refer to this element.
+ * Use this property when the accessibilityLabel is not appropriate for dictated or typed input.
+ * For example, an element that contains additional descriptive information in its accessibilityLabel
+ * can return a more concise label. The primary label should be first in the array, optionally followed
+ * by alternative labels in descending order of importance.
+ * If this property returns an empty or invalid value, the accessibilityLabel will be used instead.
+ * The default on AppKit controls is an array with an appropriate label, if different from accessibilityLabel.
+ */
+@property (nullable, copy) NSArray<NSString *> *accessibilityUserInputLabels API_AVAILABLE(macos(14.0));
+
+/*
+ * @brief The underlying attributed versions of the accessibility user input labels.
+ * Returns an array of localized labels the user provides to refer to the accessibility element.
+ * Setting this property will change the value of the accessibilityUserInputLabels property and vice versa.
+ */
+@property (nullable, copy) NSArray<NSAttributedString *> *accessibilityAttributedUserInputLabels API_AVAILABLE(macos(14.0));
+
#pragma mark Application
// Returns YES if the element is focused (generally, accessibilityFocused is equivalent to the
@@ -842,4 +860,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h 2023-05-31 09:13:38
@@ -1,14 +1,14 @@
/*
NSActionCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSActionCell : NSCell
@@ -20,4 +20,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAffineTransform.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAffineTransform.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAffineTransform.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAffineTransform.h 2023-05-31 09:13:40
@@ -1,14 +1,14 @@
/*
NSAffineTransform.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSAffineTransform.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSBezierPath;
@@ -23,4 +23,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSAlert.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,118 +12,167 @@
#import <AppKit/NSHelpManager.h>
#import <AppKit/NSGraphics.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSTextField, NSPanel, NSWindow, NSImage, NSButton, NSError;
@protocol NSAlertDelegate;
-
-/* The default alert style is NSAlertStyleWarning. NSAlertStyleCritical should be reserved for critical alerts and will cause the icon to be badged with a caution icon.
-*/
+/// The alert styles used by the `alertStyle` property on instances of `NSAlert`.
typedef NS_ENUM(NSUInteger, NSAlertStyle) {
+ /// An alert style to be used to warn the user about a current or impending event.
+ /// This style should be used when the alert’s content is more severe than `NSAlertStyleInformational` but less than `NSAlertStyleCritical`.
+ /// This is the default alert style.
NSAlertStyleWarning = 0,
+
+ /// An alert style to be used to inform the user about a current or impending event.
+ /// - Note: Currently, there is no visual difference between informational and warning alerts.
NSAlertStyleInformational = 1,
+
+ /// An alert style to be used to inform the user about a critical event.
+ /// Causes the alert’s icon to be badged with a caution icon.
+ /// The critical (or “caution”) style should be used sparingly. Using it too frequently diminishes its significance. Use the symbol only when extra attention is really needed, as when confirming an action that might result in unexpected loss of data. Don’t use the symbol for tasks whose only purpose is to overwrite or remove data, such as a save or empty trash.
NSAlertStyleCritical = 2
};
-/* These are additional NSModalResponse values used by NSAlert's -runModal and -beginSheetModalForWindow:completionHandler:.
+/* These are additional `NSModalResponse` values used by `NSAlert`’s `-runModal` and `-beginSheetModalForWindow:completionHandler:`.
- By default, NSAlert return values are position dependent, with this mapping:
+ By default, `NSAlert` return values are position dependent, with this mapping:
first (rightmost) button = NSAlertFirstButtonReturn
second button = NSAlertSecondButtonReturn
third button = NSAlertThirdButtonReturn
buttonPosition 3+x = NSAlertThirdButtonReturn + x
- Note that these return values do not apply to an NSAlert created via +alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:, which instead uses the same return values as NSRunAlertPanel. See NSAlertDefaultReturn, etc. in NSPanel.h
+ Note that these return values do not apply to an `NSAlert` created via `+alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:`, which instead uses the same return values as `NSRunAlertPanel`. See `NSAlertDefaultReturn`, etc. in NSPanel.h
+
+ If an alert is presented with no buttons added via `-addButtonWithTitle:`, the implicitly-created OK button will return with response code of 0.
*/
static const NSModalResponse NSAlertFirstButtonReturn = 1000;
static const NSModalResponse NSAlertSecondButtonReturn = 1001;
static const NSModalResponse NSAlertThirdButtonReturn = 1002;
+/// A modal dialog or sheet attached to a document window.
+/// The `NSAlert` class is not designed for subclassing.
NS_SWIFT_UI_ACTOR
@interface NSAlert : NSObject
-/* Given an NSError, create an NSAlert that can be used to present the error to the user. The error's localized description, recovery suggestion, and recovery options will be used to set the alert's message text, informative text, and button titles, respectively.
-*/
+// MARK: - Creating Alerts
+
+/// Returns an alert initialized from information in an error object.
+/// - Parameter error: Error information to display.
+/// - Returns: An initialized alert.
+/// - Note: The `NSAlert` class extracts the localized error description, recovery suggestion, and recovery options from the error parameter and uses them as the alert’s message text, informative text, and button titles, respectively.
+ (NSAlert *)alertWithError:(NSError *)error;
+// MARK: - Accessing Alert Text
+
+/// The text that is displayed prominently in the alert.
+/// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
@property (copy) NSString *messageText;
+
+/// The descriptive text that provides more details about the reason for the alert.
+/// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
@property (copy) NSString *informativeText;
-/* customize the icon. By default uses the image named NSApplicationIcon.
-*/
+// MARK: - Accessing a Custom Alert Icon
+
+/// The custom icon displayed in the alert.
+/// By default, the image used in an alert is the app icon (`NSApplicationIcon`). If this property’s value is set, the specified custom image is used in place of the app icon.
+/// If a custom alert icon had been set, it can be cleared by setting this property’s value to `nil`, which restores use of the app icon for the alert.
@property (null_resettable, strong) NSImage *icon;
-/* customize the buttons in the alert panel. Buttons are added from right to left (for left to right languages).
-*/
+// MARK: - Accessing Alert Response Buttons
+
+/// Adds a button with a given title to the alert.
+///
+/// Buttons should be added from most-to-least prominent. The exact visual arrangement of the buttons is determined by `NSAlert` internally. In general, they are arranged from trailing-to-leading edge when laid out horizontally, and top-to-bottom when laid out vertically, with some exceptions for buttons like “Cancel”.
+///
+/// The first three buttons are identified by the order in which they are added (not the order in which they may appear visually) as `NSAlertFirstButtonReturn`, `NSAlertSecondButtonReturn`, `NSAlertThirdButtonReturn` in the return-code parameter. Subsequent buttons are identified as `NSAlertThirdButtonReturn` + *n*, where *n* is an integer.
+///
+/// By default, the first button has a key equivalent of Return, any button with a title of “Cancel” has a key equivalent of Escape, and any button with the title “Don’t Save” has a key equivalent of Command-D (but only if it’s not the first button). You can also assign different key equivalents for the buttons using the `keyEquivalent` method of the `NSButton` class. In addition, you can use the `tag` property of the `NSButton` class to set the alert presentation’s return-code. The framework reserves the use of the button’s `target` and `action`.
+///
+/// - Parameter title: Title of the button to add to the alert.
+/// - Returns: The button that was added to the alert.
- (NSButton *)addButtonWithTitle:(NSString *)title;
-/* get the buttons, where the rightmost button is at index 0.
-*/
+
+/// The array of response buttons for the alert.
+/// The buttons are in the order in which they were added, and do not necessarily reflect the order they are arranged visually. The array does not include the default “OK” button that is shown in an alert presented without any buttons added with `-addButtonWithTitle:`.
@property (readonly, copy) NSArray<NSButton *> *buttons;
-/* In order to customize a return value for a button:
- setTag:(NSInteger)tag; setting a tag on a button will cause that tag to be the button's return value
-
- Note that we reserve the use of the tag for this purpose. We also reserve the use of the target and the action.
-
- By default, the first button has a key equivalent of return which implies a pulsing default button, the button named "Cancel", if any, has a key equivalent of escape, and the button named "Don't Save", if any, has a key equivalent of cmd-d. The following methods can be used to customize key equivalents:
- setKeyEquivalent:(NSString *)charCode:
- setKeyEquivalentModifierMask:(NSUInt)mask;
-*/
+// MARK: - Configuring Alerts
+/// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
+@property NSAlertStyle alertStyle;
-/* -setShowsHelp:YES adds a help button to the alert panel. When the help button is pressed, the delegate is first consulted. If the delegate does not implement alertShowHelp: or returns NO, then -[NSHelpManager openHelpAnchor:inBook:] is called with a nil book and the anchor specified by -setHelpAnchor:, if any. An exception will be raised if the delegate returns NO and there is no help anchor set.
-*/
+/// Specifies whether the alert has a help button.
+///
+/// Set this property’s value to `YES` to specify that the alert has a help button, or `NO` to specify it does not.
+///
+/// When a user clicks an alert’s help button, the alert delegate (`delegate`) receives an `alertShowHelp:` message. The delegate is responsible for displaying the help information related to this particular alert.
+///
+/// Clicking an alert’s help button can alternately cause the `-openHelpAnchor:inBook:` message to be sent to the app’s help manager with a `nil` book and the anchor specified by the `helpAnchor` property, if any of the following conditions are true:
+/// - There is no alert delegate.
+/// - The alert delegate does not implement `-alertShowHelp:`.
+/// - The alert delegate implements `-alertShowHelp:` but returns `NO`. When this is the case, an exception is raised if no help anchor is set.
@property BOOL showsHelp;
+/// The alert’s HTML help anchor used when the user clicks the alert’s help button
@property (nullable, copy) NSHelpAnchorName helpAnchor;
-@property NSAlertStyle alertStyle;
-
-/* The delegate of the receiver, currently only allows for custom help behavior of the alert.
- For apps linked against 10.12, this property has zeroing weak memory semantics. When linked against an older SDK this back to having `retain` semantics, matching legacy behavior.
- */
+/// The delegate of the receiver, currently only allows for custom help behavior of the alert.
+/// For apps linked against 10.12, this property has zeroing weak memory semantics. When linked against an older SDK this back to having `retain` semantics, matching legacy behavior.
@property (nullable, weak) id<NSAlertDelegate> delegate;
-/* -setShowsSuppressionButton: indicates whether or not the alert should contain a suppression checkbox. The default is NO. This checkbox is typically used to give the user an option to not show this alert again. If shown, the suppression button will have a default localized title similar to @"Do not show this message again" (single-button alert) or @"Don’t ask again" (multi-button alert). You can customize this title using [[alert suppressionButton] setTitle:]. When the alert is dismissed, you can get the state of the suppression button, using [[alert suppressionButton] state] and store the result in user defaults, for example. This setting can then be checked before showing the alert again. By default, the suppression button is positioned below the informative text, and above the accessory view (if any) and the alert buttons, and left-aligned with the informative text. However do not count on the placement of this button, since it might be moved if the alert panel user interface is changed in the future. If you need a checkbox for purposes other than suppression text, it is recommended you create your own using an accessory view.
-*/
-@property BOOL showsSuppressionButton API_AVAILABLE(macos(10.5));
-
-/* -suppressionButton returns a suppression button which may be customized, including the title and the initial state. You can also use this method to get the state of the button after the alert is dismissed, which may be stored in user defaults and checked before showing the alert again. In order to show the suppression button in the alert panel, you must call -setShowsSuppressionButton:YES.
-*/
-@property (nullable, readonly, strong) NSButton *suppressionButton API_AVAILABLE(macos(10.5));
-
-
-/* -setAccessoryView: sets the accessory view displayed in the alert panel. By default, the accessory view is positioned below the informative text and the suppression button (if any) and above the alert buttons, left-aligned with the informative text. If you want to customize the location of the accessory view, you must first call -layout. See the discussion of -layout for more information.
-*/
+/// The accessory view displayed in the alert, placed between the informative text or suppression checkbox (if present) and the response buttons. Before changing the location of the accessory view, first call the `-layout` method.
@property (nullable, strong) NSView *accessoryView API_AVAILABLE(macos(10.5));
-/* -layout can be used to indicate that the alert panel should do immediate layout, overriding the default behavior of laying out lazily just before showing panel. You should only call this method if you want to do your own custom layout after it returns. You should call this method only after you have finished with NSAlert customization, including setting message and informative text, and adding buttons and an accessory view if needed. You can make layout changes after this method returns, in particular to adjust the frame of an accessory view. Note that the standard layout of the alert may change in the future, so layout customization should be done with caution.
-*/
+/// Specifies that the alert must do immediate layout instead of lazily just before display.
+/// Used to indicate that the alert panel should do immediate layout, overriding the default behavior of laying out lazily just before showing panel. Only call this method if wanting to do custom layout after it returns. Call this method only after the alert’s other customization, including setting message and informative text, and adding buttons and an accessory view if needed. Layout changes can be made after this method returns, in particular to adjust the frame of an accessory view. Note that the standard layout of the alert may change in the future, so layout customization should be done with caution.
- (void)layout API_AVAILABLE(macos(10.5));
+// MARK: - Displaying Alerts
-/* Run the alert as an application-modal panel and return the result.
-*/
+/// Runs the alert as an app-modal dialog and returns the constant that identifies the button clicked.
- (NSModalResponse)runModal;
-/* Begins a sheet on the doc window using NSWindow's sheet API.
- If the alert has an alertStyle of NSAlertStyleCritical, it will be shown as a "critical" sheet; it will otherwise be presented as a normal sheet.
- */
+/// Specifies whether the alert includes a suppression checkbox, which can be employed to allow a user to opt out of seeing the alert again.
+/// The default value of this property is `NO`, which specifies the absence of a suppression checkbox in the alert. Set the value to `YES` to show a suppression checkbox in the alert.
+/// By default, a suppression checkbox has the title, “Do not show this message again.” In macOS 11.0 and later, if the alert displays multiple buttons that prompt the user to make a choice, the title is “Do not ask again.” To customize it, use the checkbox’s title property, as follows:
+///
+/// myAlert.suppressionButton.title = @"Do not show this warning again";
+///
+/// To create an alert that responds to the selection state of the suppression checkbox, check `myAlert.suppressionButton.state`.
+@property BOOL showsSuppressionButton API_AVAILABLE(macos(10.5));
+
+/// The alert’s suppression checkbox. The checkbox may be customized, including the title and the initial state. Additionally, use this method to get the state of the button after the alert is dismissed, which may be stored in user defaults and checked before showing the alert again. In order to show the suppression button in the alert panel, you must set `showsSuppressionButton` to `YES`.
+@property (nullable, readonly, strong) NSButton *suppressionButton API_AVAILABLE(macos(10.5));
+
+/// Runs the alert modally as a sheet attached to the specified window.
+/// - Parameters:
+/// - sheetWindow: The window on which to display the sheet.
+/// - handler: The completion handler that gets called when the sheet’s modal session ends.
+///
+/// This method uses the `NSWindow` sheet methods to display the alert. If the alert has an alert style of `NSCriticalAlertStyle`, it is presented as a critical sheet, which means that it can display on top of other sheets that might already be attached to the window. Otherwise, it is presented--or queued for presentation--as a standard sheet.
+/// Note that `-orderOut:` no longer needs to be called in the completion handler. If the alert isn’t don’t dismiss the alert, it will be done for you after the completion handler finishes.
- (void)beginSheetModalForWindow:(NSWindow *)sheetWindow completionHandler:(void (^ _Nullable)(NSModalResponse returnCode))handler API_AVAILABLE(macos(10.9));
-/* return the application-modal panel or the document-modal sheet corresponding to this alert.
-*/
+// MARK: - Getting Alert Windows
+
+/// The app-modal panel or document-modal sheet that corresponds to the alert
@property (readonly, strong) NSWindow *window;
@end
+/// A set of optional methods implemented by the delegate of an `NSAlert` object to respond to a user’s request for help.
@protocol NSAlertDelegate <NSObject>
+
@optional
-/* the delegate should implement this if custom help behavior is required.
-*/
+
+/// Sent to the delegate when the user clicks the alert’s help button. The delegate causes help to be displayed for an alert, directly or indirectly.
+/// - Returns: `YES` when the delegate displayed help directly, `NO` otherwise. When `NO` and the alert has a help anchor (`helpAnchor`), the application’s help manager displays help using the help anchor.
+/// - Discussion: The delegate implements this method only to override the help-anchor lookup behavior.
- (BOOL)alertShowHelp:(NSAlert *)alert NS_SWIFT_UI_ACTOR;
+
@end
@@ -143,5 +192,4 @@
static const NSAlertStyle NSCriticalAlertStyle API_DEPRECATED_WITH_REPLACEMENT("NSAlertStyleCritical", macos(10.3,10.12)) = NSAlertStyleCritical;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
-
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlignmentFeedbackFilter.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlignmentFeedbackFilter.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlignmentFeedbackFilter.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlignmentFeedbackFilter.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSAlignmentFeedbackFilter.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -16,7 +16,7 @@
@protocol NSAlignmentFeedbackToken <NSObject>
@end
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.11))
@@ -53,4 +53,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimation.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimation.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimation.h 2023-03-09 19:08:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimation.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSAnimation.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSGraphicsContext, NSString;
@@ -147,6 +147,6 @@
APPKIT_EXTERN NSAnimatablePropertyKey NSAnimationTriggerOrderOut API_AVAILABLE(macos(10.5));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSAnimationContext.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <Foundation/NSDate.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class CAMediaTimingFunction;
@@ -39,4 +39,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSAppearance.h
Application Kit
- Copyright (c) 2011-2021, Apple Inc.
+ Copyright (c) 2011-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSObject.h>
#import <Foundation/NSArray.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSBundle;
@@ -92,4 +92,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppleScriptExtensions.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppleScriptExtensions.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppleScriptExtensions.h 2023-03-09 01:14:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppleScriptExtensions.h 2023-05-31 09:13:37
@@ -1,14 +1,14 @@
/*
NSAppleScriptExtensions.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSAppleScript.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAttributedString;
@@ -23,5 +23,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSApplication.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -20,7 +20,7 @@
@protocol NSUserActivityRestoring;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSDate, NSDictionary, NSError, NSException, NSNotification;
@@ -116,43 +116,67 @@
static const NSModalResponse NSModalResponseAbort API_AVAILABLE(macos(10.9)) = (-1001);
static const NSModalResponse NSModalResponseContinue API_AVAILABLE(macos(10.9)) = (-1002);
-/* used with NSRunLoop's performSelector:target:argument:order:modes: */
+/// Used with `NSRunLoop`'s `-performSelector:target:argument:order:modes:`.
enum {
NSUpdateWindowsRunLoopOrdering = 500000
};
+/// Flags that comprise an application's @c presentationOptions.
typedef NS_OPTIONS(NSUInteger, NSApplicationPresentationOptions) {
-/* Flags that comprise an application's presentationOptions */
NSApplicationPresentationDefault = 0,
- NSApplicationPresentationAutoHideDock = (1 << 0), // Dock appears when moused to
- NSApplicationPresentationHideDock = (1 << 1), // Dock is entirely unavailable
+
+ /// Dock appears when moused to.
+ NSApplicationPresentationAutoHideDock = (1 << 0),
+
+ /// Dock is entirely unavailable.
+ NSApplicationPresentationHideDock = (1 << 1),
- NSApplicationPresentationAutoHideMenuBar = (1 << 2), // Menu Bar appears when moused to
- NSApplicationPresentationHideMenuBar = (1 << 3), // Menu Bar is entirely unavailable
+ /// Menu Bar appears when moused to.
+ NSApplicationPresentationAutoHideMenuBar = (1 << 2),
+
+ /// Menu Bar is entirely unavailable.
+ NSApplicationPresentationHideMenuBar = (1 << 3),
- NSApplicationPresentationDisableAppleMenu = (1 << 4), // all Apple menu items are disabled
- NSApplicationPresentationDisableProcessSwitching = (1 << 5), // Cmd+Tab UI is disabled
- NSApplicationPresentationDisableForceQuit = (1 << 6), // Cmd+Opt+Esc panel is disabled
- NSApplicationPresentationDisableSessionTermination = (1 << 7), // PowerKey panel and Restart/Shut Down/Log Out disabled
- NSApplicationPresentationDisableHideApplication = (1 << 8), // Application "Hide" menu item is disabled
- NSApplicationPresentationDisableMenuBarTransparency = (1 << 9), // Menu Bar's transparent appearance is disabled
+ /// All Apple menu items are disabled.
+ NSApplicationPresentationDisableAppleMenu = (1 << 4),
+
+ /// Cmd+Tab UI is disabled.
+ NSApplicationPresentationDisableProcessSwitching = (1 << 5),
+
+ /// Cmd+Opt+Esc panel is disabled.
+ NSApplicationPresentationDisableForceQuit = (1 << 6),
+
+ /// PowerKey panel and Restart/Shut Down/Log Out disabled.
+ NSApplicationPresentationDisableSessionTermination = (1 << 7),
+
+ /// Application "Hide" menu item is disabled.
+ NSApplicationPresentationDisableHideApplication = (1 << 8),
+
+ /// Menu Bar's transparent appearance is disabled.
+ NSApplicationPresentationDisableMenuBarTransparency = (1 << 9),
- NSApplicationPresentationFullScreen API_AVAILABLE(macos(10.7)) = (1 << 10), // Application is in fullscreen mode
- NSApplicationPresentationAutoHideToolbar API_AVAILABLE(macos(10.7)) = (1 << 11), // Fullscreen window toolbar is detached from window and hides/shows on rollover. May be used only when both NSApplicationPresentationFullScreen is also set
+ /// Application is in fullscreen mode.
+ NSApplicationPresentationFullScreen API_AVAILABLE(macos(10.7)) = (1 << 10),
- NSApplicationPresentationDisableCursorLocationAssistance API_AVAILABLE(macos(10.11.2)) = (1 << 12) // "Shake mouse pointer to locate" is disabled for this application
+ /// Fullscreen window toolbar is detached from window and hides/shows on rollover.
+ /// May be used only when both @c NSApplicationPresentationFullScreen is also set.
+ NSApplicationPresentationAutoHideToolbar API_AVAILABLE(macos(10.7)) = (1 << 11),
+
+ /// "Shake mouse pointer to locate" is disabled for this application.
+ NSApplicationPresentationDisableCursorLocationAssistance API_AVAILABLE(macos(10.11.2)) = (1 << 12)
} API_AVAILABLE(macos(10.6));
typedef NS_OPTIONS(NSUInteger, NSApplicationOcclusionState) {
- // If set, at least part of any window owned by this application is visible. If not set, all parts of all windows owned by this application are completely occluded. The menu bar does not count as a window owned by this application, so if only the menu bar is showing then the application is considered not visible. Status items, however, have windows owned by your application. If the status item is present in the menu bar, your application will be considered visible as long as the menu bar is visible.
+ /// If set, at least part of any window owned by this application is visible. If not set, all parts of all windows owned by this application are completely occluded. The menu bar does not count as a window owned by this application, so if only the menu bar is showing then the application is considered not visible. Status items, however, have windows owned by your application. If the status item is present in the menu bar, your application will be considered visible as long as the menu bar is visible.
NSApplicationOcclusionStateVisible = 1UL << 1,
} API_AVAILABLE(macos(10.9));
typedef NS_OPTIONS(NSInteger, NSWindowListOptions) {
- NSWindowListOrderedFrontToBack = (1 << 0), /* Onscreen application windows in front to back order. By default, -[NSApp windows] is used. */
+ /// Onscreen application windows in front to back order. By default, -[NSApp windows] is used.
+ NSWindowListOrderedFrontToBack = (1 << 0),
} API_AVAILABLE(macos(10.12));
-/* Information used by the system during modal sessions */
+/// Information used by the system during modal sessions.
typedef struct _NSModalSession *NSModalSession;
@interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
@@ -161,18 +185,59 @@
@property (class, readonly, strong) __kindof NSApplication *sharedApplication;
@property (nullable, weak) id<NSApplicationDelegate> delegate;
+
- (void)hide:(nullable id)sender;
- (void)unhide:(nullable id)sender;
- (void)unhideWithoutActivation;
- (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
+
@property (nullable, readonly, weak) NSWindow *mainWindow;
@property (nullable, readonly, weak) NSWindow *keyWindow;
@property (getter=isActive, readonly) BOOL active;
@property (getter=isHidden, readonly) BOOL hidden;
@property (getter=isRunning, readonly) BOOL running;
+
+#pragma mark - Activation and Deactivation
+
- (void)deactivate;
-- (void)activateIgnoringOtherApps:(BOOL)flag;
+/// Makes the receiver the active app.
+- (void)activateIgnoringOtherApps:(BOOL)flag API_DEPRECATED("This method will be deprecated in a future release. Use NSApp.activate instead.", macos(10.0, API_TO_BE_DEPRECATED));
+
+/// Makes the receiver the active app, if possible.
+///
+/// You shouldn’t assume the app will be active immediately
+/// after sending this message. The framework also does not
+/// guarantee that the app will be activated at all.
+///
+/// For cooperative activation, the other application should
+/// call `-yieldActivationToApplication:` or equivalent prior
+/// to the target application invoking `-activate`.
+///
+/// Invoking `-activate` on an already-active application
+/// cancels any pending activation yields by the receiver.
+- (void)activate API_AVAILABLE(macos(14.0));
+
+/// Explicitly allows another application to make itself active.
+///
+/// Calling this method will not deactivate the current app, nor
+/// will it activate the other app. For cooperative or coordinated
+/// activation, the other app should request to be activated at
+/// some point in the future by calling `activate` or equivalent.
+- (void)yieldActivationToApplication:(NSRunningApplication *)application API_AVAILABLE(macos(14.0)) NS_SWIFT_NAME(yieldActivation(to:));
+
+/// Same as `-yieldActivationToApplication:`, but the provided
+/// bundle identifier does not have to correspond to a currently
+/// running application.
+///
+/// This method should be used to yield activation to apps that
+/// may not be running at the time of invoking it. If it is known
+/// that the target application is currently running, use
+/// `-yieldActivationToApplication:` instead.
+- (void)yieldActivationToApplicationWithBundleIdentifier:(NSString *)bundleIdentifier API_AVAILABLE(macos(14.0)) NS_SWIFT_NAME(yieldActivation(toApplicationWithBundleIdentifier:));
+
+#pragma mark - Lifecycle
+
- (void)hideOtherApplications:(nullable id)sender;
- (void)unhideAllApplications:(nullable id)sender;
@@ -194,12 +259,11 @@
NSInformationalRequest = 10
};
-/* inform the user that this application needs attention - call this method only if your application is not already active */
+/// Inform the user that this application needs attention - call this method only if your application is not already active.
- (NSInteger)requestUserAttention:(NSRequestUserAttentionType)requestType;
- (void)cancelUserAttentionRequest:(NSInteger)request;
-/* Execute a block for each of the app's windows. Set *stop = YES if desired, to halt the enumeration early.
- */
+/// Execute a block for each of the app's windows. Set `*stop = YES` if desired, to halt the enumeration early.
- (void)enumerateWindowsWithOptions:(NSWindowListOptions)options usingBlock:(void (NS_NOESCAPE ^)(NSWindow *window, BOOL *stop))block API_AVAILABLE(macos(10.12));
- (void)preventWindowOrdering;
@@ -209,17 +273,18 @@
@property (nullable, strong) NSMenu *mainMenu;
-/* Set or get the Help menu for the app. If a non-nil menu is set as the Help menu, Spotlight for Help will be installed in it; otherwise AppKit will install Spotlight for Help into a menu of its choosing (and that menu is not returned from -helpMenu). If you wish to completely suppress Spotlight for Help, you can set a menu that does not appear in the menu bar. NSApplication retains its Help menu and releases it when a different menu is set.
+/**
+ Set or get the Help menu for the app. If a non-nil menu is set as the Help menu, Spotlight for Help will be installed in it; otherwise AppKit will install Spotlight for Help into a menu of its choosing (and that menu is not returned from `-helpMenu`). If you wish to completely suppress Spotlight for Help, you can set a menu that does not appear in the menu bar. @c NSApplication retains its Help menu and releases it when a different menu is set.
*/
@property (nullable, strong) NSMenu *helpMenu API_AVAILABLE(macos(10.6));
@property (null_resettable, strong) NSImage *applicationIconImage;
-/* Returns the activation policy of the application.
- */
+/// @return The activation policy of the application.
- (NSApplicationActivationPolicy)activationPolicy API_AVAILABLE(macos(10.6));
-/* Attempts to modify the application's activation policy. In OS X 10.9, any policy may be set; prior to 10.9, the activation policy may be changed to NSApplicationActivationPolicyProhibited or NSApplicationActivationPolicyRegular, but may not be changed to NSApplicationActivationPolicyAccessory. This returns YES if setting the activation policy is successful, and NO if not.
+/**
+ Attempts to modify the application's activation policy. In OS X 10.9, any policy may be set; prior to 10.9, the activation policy may be changed to @c NSApplicationActivationPolicyProhibited or @c NSApplicationActivationPolicyRegular, but may not be changed to @c NSApplicationActivationPolicyAccessory. This returns @c YES if setting the activation policy is successful, and @c NO if not.
*/
- (BOOL)setActivationPolicy:(NSApplicationActivationPolicy)activationPolicy API_AVAILABLE(macos(10.6));
@@ -229,7 +294,7 @@
- (void)reportException:(NSException *)exception;
+ (void)detachDrawingThread:(SEL)selector toTarget:(id)target withObject:(nullable id)argument;
-/* If an application delegate returns NSTerminateLater from -applicationShouldTerminate:, -replyToApplicationShouldTerminate: must be called with YES or NO once the application decides if it can terminate */
+/// If an application delegate returns NSTerminateLater from -applicationShouldTerminate:, -replyToApplicationShouldTerminate: must be called with YES or NO once the application decides if it can terminate.
- (void)replyToApplicationShouldTerminate:(BOOL)shouldTerminate;
typedef NS_ENUM(NSUInteger, NSApplicationDelegateReply) {
@@ -238,19 +303,21 @@
NSApplicationDelegateReplyFailure = 2
};
-/* If an application delegate encounters an error while handling -application:openFiles: or -application:printFiles:, -replyToOpenOrPrint: should be called with NSApplicationDelegateReplyFailure. If the user cancels the operation, NSApplicationDelegateReplyCancel should be used, and if the operation succeeds, NSApplicationDelegateReplySuccess should be used */
+/**
+ If an application delegate encounters an error while handling `-application:openFiles:` or` -application:printFiles:`, `-replyToOpenOrPrint:` should be called with @c NSApplicationDelegateReplyFailure. If the user cancels the operation, @c NSApplicationDelegateReplyCancel should be used, and if the operation succeeds, @c NSApplicationDelegateReplySuccess should be used .
+*/
- (void)replyToOpenOrPrint:(NSApplicationDelegateReply)reply;
-/* Opens the character palette
-*/
+/// Opens the character palette.
- (void)orderFrontCharacterPalette:(nullable id)sender;
-/* Gets or sets the presentationOptions that should be in effect for the system when this application is the active application. Only certain combinations of NSApplicationPresentationOptions flags are allowed, as detailed in the AppKit Release Notes and the reference documentation for -setPresentationOptions:. When given an invalid combination of option flags, -setPresentationOptions: raises an exception.
+/**
+ Gets or sets the @c presentationOptions that should be in effect for the system when this application is the active application. Only certain combinations of @c NSApplicationPresentationOptions flags are allowed, as detailed in the AppKit Release Notes and the reference documentation for `-setPresentationOptions:`. When given an invalid combination of option flags, `-setPresentationOptions:` raises an exception.
*/
@property NSApplicationPresentationOptions presentationOptions API_AVAILABLE(macos(10.6));
-/* Returns the set of application presentation options that are currently in effect for the system. These are the presentation options that have been put into effect by the currently active application.
-*/
+/// @return The set of application presentation options that are currently in effect for the system.
+/// These are the presentation options that have been put into effect by the currently active application.
@property (readonly) NSApplicationPresentationOptions currentSystemPresentationOptions API_AVAILABLE(macos(10.6));
@property (readonly) NSApplicationOcclusionState occlusionState API_AVAILABLE(macos(10.9));
@@ -295,38 +362,40 @@
@end
@interface NSApplication(NSFullKeyboardAccess)
-/* Use this method to get the status of Full Keyboard Access, as configured in the Keyboard preference pane. You may use this status to implement your own key loop or to implement in-control tabbing behavior similar to NSTableView. Because of the nature of the preference storage, you will not be notified of changes to the key if you attempt to observe it via key-value observing; however, calling this method is fairly inexpensive, so you should always call it when you need the underlying value instead of caching it.
+/**
+ Use this method to get the status of Full Keyboard Access, as configured in the Keyboard preference pane. You may use this status to implement your own key loop or to implement in-control tabbing behavior similar to @c NSTableView. Because of the nature of the preference storage, you will not be notified of changes to the key if you attempt to observe it via key-value observing; however, calling this method is fairly inexpensive, so you should always call it when you need the underlying value instead of caching it.
*/
@property (getter=isFullKeyboardAccessEnabled, readonly) BOOL fullKeyboardAccessEnabled API_AVAILABLE(macos(10.6));
@end
-// return values for -applicationShouldTerminate:
+/// Return values for `-applicationShouldTerminate:`.
typedef NS_ENUM(NSUInteger, NSApplicationTerminateReply) {
- NSTerminateCancel = 0,
- NSTerminateNow = 1,
- NSTerminateLater = 2
+ NSTerminateCancel = 0,
+ NSTerminateNow = 1,
+ NSTerminateLater = 2
};
-// return values for -application:printFiles:withSettings:showPrintPanels:.
+/// Return values for `-application:printFiles:withSettings:showPrintPanels:`.
typedef NS_ENUM(NSUInteger, NSApplicationPrintReply) {
NSPrintingCancelled = 0,
- NSPrintingSuccess = 1,
- NSPrintingFailure = 3,
- NSPrintingReplyLater = 2
+ NSPrintingSuccess = 1,
+ NSPrintingReplyLater = 2,
+ NSPrintingFailure = 3
};
@protocol NSApplicationDelegate <NSObject>
@optional
-/*
- Allowable return values are:
- NSTerminateNow - it is ok to proceed with termination
- NSTerminateCancel - the application should not be terminated
- NSTerminateLater - it may be ok to proceed with termination later. The application must call -replyToApplicationShouldTerminate: with YES or NO once the answer is known
- this return value is for delegates who need to provide document modal alerts (sheets) in order to decide whether to quit.
-*/
+/**
+ Allowable return values are:
+ @c NSTerminateNow - it is ok to proceed with termination
+ @c NSTerminateCancel - the application should not be terminated
+ @c NSTerminateLater - it may be ok to proceed with termination later. The application must call `-replyToApplicationShouldTerminate:` with @c YES or @c NO once the answer is known
+ @note This return value is for delegates who need to provide document modal alerts (sheets) in order to decide whether to quit.
+ */
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender NS_SWIFT_UI_ACTOR;
-/* This will be called for any URLs your application is asked to open. This includes URL types (CFBundleURLTypes) defined in your Info.plist, and Document types (CFBundleDocumentTypes) that have no associated NSDocument class. Document URLs that have an associated NSDocument class will be opened through NSDocumentController. If this is implemented, application:openFiles: and application:openFile: will not be called.
+/**
+ This will be called for any URLs your application is asked to open. This includes URL types (CFBundleURLTypes) defined in your Info.plist, and Document types (@c CFBundleDocumentTypes) that have no associated @c NSDocument class. Document URLs that have an associated @c NSDocument class will be opened through @c NSDocumentController. If this is implemented, `-application:openFiles:` and `-application:openFile:` will not be called.
*/
- (void)application:(NSApplication *)application openURLs:(NSArray<NSURL *> *)urls NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.13));
@@ -347,80 +416,87 @@
- (void)application:(NSApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.7));
- (void)application:(NSApplication *)application didReceiveRemoteNotification:(NSDictionary<NSString *, id> *)userInfo NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.7));
-/** Method to opt-in to secure restorable state.
+/**
+ Method to opt-in to secure restorable state.
- When this returns YES:
- * NSCoders that are passed into the various NSWindowRestoration methods will requiresSecureCoding and have a decodingFailurePolicy of NSDecodingFailurePolicySetErrorAndReturn.
- * Any restorationClass set on a window must explicitly conform to NSWindowRestoration.
+ When this returns @c YES:
+ * NSCoders that are passed into the various @c NSWindowRestoration methods will @c requiresSecureCoding and have a @c decodingFailurePolicy of @c NSDecodingFailurePolicySetErrorAndReturn.
+ * Any @c restorationClass set on a window must explicitly conform to @c NSWindowRestoration.
- This method will be called prior to any state encoding or restoration.
+ This method will be called prior to any state encoding or restoration.
*/
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(12.0));
/**
- Returns the object capable of handling the specified intent.
+ @return The object capable of handling the specified intent.
*/
- (nullable id)application:(NSApplication *)application handlerForIntent:(INIntent *)intent NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(12.0));
-/* Method called by -[NSApplication encodeRestorableStateWithCoder:] to give the delegate a chance to encode any additional state into the NSCoder. If the restorable state managed by the delegate changes, you must call -[NSApplication invalidateRestorableState] so that it will be re-encoded. See the header NSWindowRestoration.h for more information.
+/**
+ Method called by `-[NSApplication encodeRestorableStateWithCoder:]` to give the delegate a chance to encode any additional state into the @c NSCoder. If the restorable state managed by the delegate changes, you must call `-[NSApplication invalidateRestorableState]` so that it will be re-encoded. See the header `NSWindowRestoration.h` for more information.
*/
- (void)application:(NSApplication *)app willEncodeRestorableState:(NSCoder *)coder NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.7));
-/* Method called by -[NSApplication restoreStateWithCoder:] to give the delegate a chance to restore its own state, which it may decode from the NSCoder. See the header NSWindowRestoration.h for more information.
+/**
+ Method called by `-[NSApplication restoreStateWithCoder:]` to give the delegate a chance to restore its own state, which it may decode from the @c NSCoder. See the header `NSWindowRestoration.h` for more information.
*/
- (void)application:(NSApplication *)app didDecodeRestorableState:(NSCoder *)coder NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.7));
-/* NSUserActivity support:
- */
+#pragma mark - NSUserActivity support
-/*
+/**
- This will be called on the main thread as soon as the user indicates they want to continue an activity in your application. The NSUserActivity object may not be available instantly, so use this as an opportunity to show the user that an activity will be continued shortly. Return YES to indicate that you are doing so. Return NO (or leave it unimplemented) and AppKit/UIKit will put up a default UI.
+ This will be called on the main thread as soon as the user indicates they want to continue an activity in your application. The @c NSUserActivity object may not be available instantly, so use this as an opportunity to show the user that an activity will be continued shortly. Return @c YES to indicate that you are doing so. Return @c NO (or leave it unimplemented) and AppKit/UIKit will put up a default UI.
- For each application:willContinueUserActivityWithType: invocation, you are guaranteed to get exactly one invocation of application:continueUserActivity:restorationHandler: on success, or application:didFailToContinueUserActivityWithType:error: if an error was encountered.
+ For each `-application:willContinueUserActivityWithType:` invocation, you are guaranteed to get exactly one invocation of `-application:continueUserActivity:restorationHandler:` on success, or `-application:didFailToContinueUserActivityWithType:error:` if an error was encountered.
*/
- (BOOL)application:(NSApplication *)application willContinueUserActivityWithType:(NSString *)userActivityType NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.10));
-/*
- This will be called on the main thread after the NSUserActivity object is available. Use the data you stored in the NSUserActivity object to re-create what the user was doing. Return YES to indicate that the activity was handled. Return NO (or leave it unimplemented) and AppKit will attempt to continue the user activity.
+/**
+ This will be called on the main thread after the @c NSUserActivity object is available. Use the data you stored in the NSUserActivity object to re-create what the user was doing.
- You should create/fetch any restorable objects associated with the user activity, and pass them to the restorationHandler. They will then get the above restoreUserActivityState: method invoked with the user activity. Invoking the restorationHandler is optional. It may be copied and invoked later, but must be invoked on the main thread.
+ @return @c YES to indicate that the activity was handled. Return @c NO (or leave it unimplemented) and AppKit will attempt to continue the user activity.
- If this user activity was created automatically by having NSUbiquitousDocumentUserActivityType in a CFBundleDocumentTypes entry, AppKit can automatically restore the NSUserActivity on OS X if NO is returned, or this method is unimplemented. It will do so by creating a document of the appropriate type using the URL stored in the userInfo under the NSUserActivityDocumentURLKey. The document will have restoreUserActivity: called on it.
+ You should create/fetch any restorable objects associated with the user activity, and pass them to the restorationHandler. They will then get the above `-restoreUserActivityState:` method invoked with the user activity. Invoking the @c restorationHandler is optional. It may be copied and invoked later, but must be invoked on the main thread.
+
+ If this user activity was created automatically by having @c NSUbiquitousDocumentUserActivityType in a @c CFBundleDocumentTypes entry, AppKit can automatically restore the NSUserActivity on OS X if NO is returned, or this method is unimplemented. It will do so by creating a document of the appropriate type using the URL stored in the userInfo under the @c NSUserActivityDocumentURLKey. The document will have `-restoreUserActivity:` called on it.
*/
- (BOOL)application:(NSApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<NSUserActivityRestoring>> *restorableObjects))restorationHandler NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.10));
-/* There are instances where continuing a NSUserActivity may fail. This will get called on the main thread if it does so. If it is unimplemented, AppKit will present the error. */
+/**
+ There are instances where continuing a @c NSUserActivity may fail. This will get called on the main thread if it does so. If it is unimplemented, AppKit will present the error.
+ */
- (void)application:(NSApplication *)application didFailToContinueUserActivityWithType:(NSString *)userActivityType error:(NSError *)error NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.10));
-/* This will be called on the main thread when a user activity managed by AppKit/UIKit has been updated. You should use this as a last chance to add additional data to the userActivity. */
+/**
+ This will be called on the main thread when a user activity managed by AppKit/UIKit has been updated. You should use this as a last chance to add additional data to the @c userActivity.
+ */
- (void)application:(NSApplication *)application didUpdateUserActivity:(NSUserActivity *)userActivity NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.10));
-/* This will be called on the main thread after the user indicates they want to accept a CloudKit sharing invitation in your application.
+/**
+ This will be called on the main thread after the user indicates they want to accept a CloudKit sharing invitation in your application.
- You should use the CKShareMetadata object's shareURL and containerIdentifier to schedule a CKAcceptSharesOperation, then start using the resulting CKShare and its associated record(s), which will appear in the CKContainer's shared database in a zone matching that of the record's owner.
+ You should use the @c CKShareMetadata object's @c shareURL and containerIdentifier to schedule a @c CKAcceptSharesOperation, then start using the resulting @c CKShare and its associated record(s), which will appear in the @c CKContainer's shared database in a zone matching that of the record's owner.
*/
- (void)application:(NSApplication *)application userDidAcceptCloudKitShareWithMetadata:(CKShareMetadata *)metadata NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.12));
-/* Key Value Coding support:
- */
+#pragma mark - Key Value Coding support
-/* Return YES if the receiving delegate object can respond to key value coding messages for a specific keyed attribute, to-one relationship, or to-many relationship. Return NO otherwise.
-*/
+/// @return @c YES if the receiving delegate object can respond to key value coding messages for a specific keyed attribute, to-one relationship, or to-many relationship. Return @c NO otherwise.
- (BOOL)application:(NSApplication *)sender delegateHandlesKey:(NSString *)key NS_SWIFT_UI_ACTOR;
-/* NSMenu system-wide keyboard shortcut localization support
- */
+ #pragma mark - NSMenu system-wide keyboard shortcut localization support
-/* This method will be called once during application launch at [NSApplication finishLaunching].
+/**
+ This method will be called once during application launch at `-[NSApplication finishLaunching]`.
- Return NO if the receiving delegate object wishes to opt-out of system-wide keyboard shortcut localization for all application-supplied menus. Return YES by default for apps linked against 12.0 and later SDK.
+ @return @c NO if the receiving delegate object wishes to opt-out of system-wide keyboard shortcut localization for all application-supplied menus. Return @c YES by default for apps linked against 12.0 and later SDK.
*/
- (BOOL)applicationShouldAutomaticallyLocalizeKeyEquivalents:(NSApplication *)application NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(12.0));
-/* Notifications:
- */
+#pragma mark - Notifications
+
- (void)applicationWillFinishLaunching:(NSNotification *)notification NS_SWIFT_UI_ACTOR;
- (void)applicationDidFinishLaunching:(NSNotification *)notification NS_SWIFT_UI_ACTOR;
- (void)applicationWillHide:(NSNotification *)notification NS_SWIFT_UI_ACTOR;
@@ -456,7 +532,7 @@
@property (nullable, strong) id servicesProvider;
@end
-/* Optional keys in -orderFrontStandardAboutPanelWithOptions: optionsDictionary */
+/// Optional keys in `-orderFrontStandardAboutPanelWithOptions:` @c optionsDictionary.
typedef NSString * NSAboutPanelOptionKey NS_TYPED_ENUM;
/// NSAttributedString displayed in the info area of the panel. If not specified, contents obtained from "Credits.rtf" (.rtfd, .html) in [NSBundle mainBundle]; if not available, blank. Note that in applications built against the 10.14 SDK or earlier, the credits are shown in light appearance even when the application is running in dark appearance, except when the credits are specified as an attributed string, or come from a file are the text is just pure black. In applications built against the 10.15 SDK or newer, credits will be shown in dark appearance, using the "adaptive color mapping" setting in NSTextView.
@@ -475,8 +551,7 @@
- (void)orderFrontStandardAboutPanelWithOptions:(NSDictionary<NSAboutPanelOptionKey, id> *)optionsDictionary;
@end
-/* Bi-directional User Interface
-*/
+#pragma mark - Bi-directional User Interface
@interface NSApplication (NSApplicationLayoutDirection)
@property (readonly) NSUserInterfaceLayoutDirection userInterfaceLayoutDirection API_AVAILABLE(macos(10.6)); // Returns the application-wide user interface layout direction.
@@ -484,11 +559,12 @@
@interface NSApplication (NSRestorableUserInterface)
-/* Disable or reenable relaunching this app on login, if the app was running at the time the user logged out. These methods increment and decrement a counter respectively; if the counter is 0 at the time the user logs out, then the app may be relaunched when the user logs back in. The counter is initially zero, so by default apps are relaunched.
+/**
+ Disable or reenable relaunching this app on login, if the app was running at the time the user logged out. These methods increment and decrement a counter respectively; if the counter is 0 at the time the user logs out, then the app may be relaunched when the user logs back in. The counter is initially zero, so by default apps are relaunched.
- If your app should not be relaunched because it launches via some other mechanism (e.g. launchd), then the recommended usage is to call [NSApp disableRelaunchOnLogin] once, and never pair it with an -enable call.
+ If your app should not be relaunched because it launches via some other mechanism (e.g. launchd), then the recommended usage is to call `-[NSApp disableRelaunchOnLogin]` once, and never pair it with an -enable call.
- If your app should not be relaunched because it triggers a restart (e.g. an installer), then the recommended usage is to call [NSApp disableRelaunchOnLogin] immediately before you attempt to trigger a restart, and [NSApp enableRelaunchOnLogin] immediately after. This is because the user may cancel restarting; if the user later restarts for another reason, then your app should be brought back.
+ If your app should not be relaunched because it triggers a restart (e.g. an installer), then the recommended usage is to call `-[NSApp disableRelaunchOnLogin]` immediately before you attempt to trigger a restart, and `-[NSApp enableRelaunchOnLogin]` immediately after. This is because the user may cancel restarting; if the user later restarts for another reason, then your app should be brought back.
These methods are thread safe.
*/
@@ -496,8 +572,8 @@
- (void)enableRelaunchOnLogin API_AVAILABLE(macos(10.7));
@end
-/* Soft deprecated. Please use NSApplication's registerForRemoteNotifications along with requestAuthorizationWithOptions: from the UserNotifications.framework to specify allowable notification types.
-*/
+/// Soft deprecated.
+/// Please use `NSApplication`'s `-registerForRemoteNotifications` along with `-requestAuthorizationWithOptions:` from the `UserNotifications.framework` to specify allowable notification types.
typedef NS_OPTIONS(NSUInteger, NSRemoteNotificationType) {
NSRemoteNotificationTypeNone API_AVAILABLE(macos(10.7)) = 0,
NSRemoteNotificationTypeBadge API_AVAILABLE(macos(10.7)) = 1 << 0,
@@ -505,45 +581,44 @@
NSRemoteNotificationTypeAlert API_AVAILABLE(macos(10.8)) = 1 << 2,
};
-
@interface NSApplication (NSRemoteNotifications)
- (void)registerForRemoteNotifications API_AVAILABLE(macos(10.14));
- (void)unregisterForRemoteNotifications API_AVAILABLE(macos(10.7));
-/* Returns YES if the application is currently registered for remote notifications, taking into account any systemwide settings; doesn't relate to connectivity.
-*/
+/// @return @c YES if the application is currently registered for remote notifications, taking into account any systemwide settings; doesn't relate to connectivity.
@property(readonly, getter=isRegisteredForRemoteNotifications) BOOL registeredForRemoteNotifications API_AVAILABLE(macos(10.14));
-/* The following are soft deprecated. Please use the registerForRemoteNotifications above and requestAuthorizationWithOptions: from UserNotifications.framework
-*/
+/// The following are soft deprecated.
+/// Please use the `-registerForRemoteNotifications` above and `-requestAuthorizationWithOptions:` from `UserNotifications.framework`.
- (void)registerForRemoteNotificationTypes:(NSRemoteNotificationType)types API_AVAILABLE(macos(10.7));
@property (readonly) NSRemoteNotificationType enabledRemoteNotificationTypes API_AVAILABLE(macos(10.7));
@end
-/* An Application's startup function */
-
+/// An Application's startup function.
APPKIT_EXTERN int NSApplicationMain(int argc, const char *_Nonnull argv[_Nonnull]);
-/* NSApplicationLoad should be called when loading a Cocoa bundle in a Carbon app in order to initialize NSApplication and other Cocoa objects. Redundant calls are ignored.
-*/
+/// @c NSApplicationLoad should be called when loading a Cocoa bundle in a Carbon app in order to initialize @c NSApplication and other Cocoa objects. Redundant calls are ignored.
APPKIT_EXTERN BOOL NSApplicationLoad(void);
-/* NSShowsServicesMenuItem() always returns YES. */
+/// @c NSShowsServicesMenuItem() always returns @c YES.
APPKIT_EXTERN BOOL NSShowsServicesMenuItem(NSString *itemName);
-/* NSSetShowsServicesMenuItem() has no effect, and always returns 0. */
+/// @c NSSetShowsServicesMenuItem() has no effect, and always returns 0.
APPKIT_EXTERN NSInteger NSSetShowsServicesMenuItem(NSString *itemName, BOOL enabled);
-/* NSUpdateDynamicServices() causes the services information for the system to be updated. This will only be necessary if your program adds dynamic services to the system (i.e. services not found in mach-o segments of executables).
-*/
+/// @c NSUpdateDynamicServices() causes the services information for the system to be updated.
+/// This will only be necessary if your program adds dynamic services to the system (i.e. services not found in mach-o segments of executables).
APPKIT_EXTERN void NSUpdateDynamicServices(void);
APPKIT_EXTERN BOOL NSPerformService(NSString *itemName, NSPasteboard * _Nullable pboard);
typedef NSString * NSServiceProviderName NS_SWIFT_BRIDGED_TYPEDEF;
-APPKIT_EXTERN void NSRegisterServicesProvider(id _Nullable provider, NSServiceProviderName name); // apps should use -setServicesProvider
+
+/// Apps should use -setServicesProvider.
+APPKIT_EXTERN void NSRegisterServicesProvider(id _Nullable provider, NSServiceProviderName name);
APPKIT_EXTERN void NSUnregisterServicesProvider(NSServiceProviderName name);
-/* Notifications */
+#pragma mark - Notification Names
+
APPKIT_EXTERN NSNotificationName NSApplicationDidBecomeActiveNotification;
APPKIT_EXTERN NSNotificationName NSApplicationDidHideNotification;
APPKIT_EXTERN NSNotificationName NSApplicationDidFinishLaunchingNotification;
@@ -561,35 +636,47 @@
APPKIT_EXTERN NSNotificationName NSApplicationProtectedDataWillBecomeUnavailableNotification API_AVAILABLE(macos(12.0));
APPKIT_EXTERN NSNotificationName NSApplicationProtectedDataDidBecomeAvailableNotification API_AVAILABLE(macos(12.0));
-/* User info keys for NSApplicationDidFinishLaunchingNotification */
+#pragma mark - User info keys for NSApplicationDidFinishLaunchingNotification
-/* The following key is present in the userInfo of NSApplicationDidFinishLaunchingNotification. Its value is an NSNumber containing a bool. It will be NO if the app was launched to open or print a file, to perform a Service, if the app had saved state that will be restored, or if the app launch was in some other sense not a "default" launch. Otherwise its value will be YES.
+/**
+ The following key is present in the userInfo of NSApplicationDidFinishLaunchingNotification. Its value is an NSNumber containing a bool. It will be NO if the app was launched to open or print a file, to perform a Service, if the app had saved state that will be restored, or if the app launch was in some other sense not a "default" launch. Otherwise its value will be YES.
*/
APPKIT_EXTERN NSString * const NSApplicationLaunchIsDefaultLaunchKey API_AVAILABLE(macos(10.7));
-/* The following key is present in the userInfo of NSApplicationDidFinishLaunchingNotification. It will be present if your application was launched because a user activated a notification in the Notification Center. Its value is an NSUserNotification object. */
+/**
+ The following key is present in the userInfo of NSApplicationDidFinishLaunchingNotification. It will be present if your application was launched because a user activated a notification in the Notification Center. Its value is an NSUserNotification object.
+ */
APPKIT_EXTERN NSString * const NSApplicationLaunchUserNotificationKey API_AVAILABLE(macos(10.8));
-/* Deprecated Keys for NSApplicationDidFinishLaunchingNotification */
-/* NSApplicationLaunchRemoteNotificationKey is unimplemented. Please use NSApplicationLaunchUserNotificationKey to get the NSUserNotification object. The NSUserNotification object has an isRemote property to indicate whether this application was launched as a result of a remote notification */
+#pragma mark - Deprecated keys for NSApplicationDidFinishLaunchingNotification
+/**
+ NSApplicationLaunchRemoteNotificationKey is unimplemented. Please use NSApplicationLaunchUserNotificationKey to get the NSUserNotification object. The NSUserNotification object has an isRemote property to indicate whether this application was launched as a result of a remote notification
+ */
APPKIT_EXTERN NSString * const NSApplicationLaunchRemoteNotificationKey API_DEPRECATED("", macos(10.7,10.8));
-/* Upon receiving this notification, you can query the NSApplication for its occlusion state. Note that this only notifies about changes in the state of the occlusion, not when the occlusion region changes. You can use this notification to increase responsiveness and save power, by halting any expensive calculations that the user can not see. */
+/**
+ Upon receiving this notification, you can query the NSApplication for its occlusion state. Note that this only notifies about changes in the state of the occlusion, not when the occlusion region changes. You can use this notification to increase responsiveness and save power, by halting any expensive calculations that the user can not see.
+ */
APPKIT_EXTERN NSNotificationName const NSApplicationDidChangeOcclusionStateNotification API_AVAILABLE(macos(10.9));
-/* Deprecated Methods */
+#pragma mark - Deprecated Methods
+
@interface NSApplication (NSDeprecated)
-/* -runModalForWindow:relativeToWindow: was deprecated in Mac OS X 10.0. Please use -[NSWindow beginSheet:completionHandler:] instead.
+/**
+ `-runModalForWindow:relativeToWindow:` was deprecated in Mac OS X 10.0. Please use `-[NSWindow beginSheet:completionHandler:]` instead.
*/
- (NSInteger)runModalForWindow:(null_unspecified NSWindow *)window relativeToWindow:(null_unspecified NSWindow *)docWindow API_DEPRECATED("Use -[NSWindow beginSheet:completionHandler:] instead", macos(10.0,10.0));
-/* -beginModalSessionForWindow:relativeToWindow: was deprecated in Mac OS X 10.0. Please use -[NSWindow beginSheet:completionHandler:] instead.
+/**
+ `-beginModalSessionForWindow:relativeToWindow:` was deprecated in Mac OS X 10.0. Please use `-[NSWindow beginSheet:completionHandler:]` instead.
*/
- (NSModalSession)beginModalSessionForWindow:(null_unspecified NSWindow *)window relativeToWindow:(null_unspecified NSWindow *)docWindow NS_RETURNS_INNER_POINTER API_DEPRECATED("Use -[NSWindow beginSheet:completionHandler:] instead", macos(10.0,10.0));
-/* -application:printFiles: was deprecated in Mac OS X 10.4. Implement application:printFiles:withSettings:showPrintPanels: in your application delegate instead.
+/**
+ `-application:printFiles:` was deprecated in Mac OS X 10.4.
+ Implement `-application:printFiles:withSettings:showPrintPanels:` in your application delegate instead.
*/
- (void)application:(null_unspecified NSApplication *)sender printFiles:(null_unspecified NSArray<NSString *> *)filenames API_DEPRECATED("", macos(10.3,10.4));
@@ -599,7 +686,8 @@
NSRunContinuesResponse API_DEPRECATED("Use NSModalResponseContinue instead", macos(10.0,10.10)) = (-1002)
};
-/* NSWindow's -beginSheet:completionHandler: and -endSheet:returnCode: should be used instead. NSApplication's -beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: will continue to work as it previously did, leaking contextInfo and failing when there is already an existing sheet.
+/**
+ `NSWindow`'s `-beginSheet:completionHandler:` and `-endSheet:returnCode:` should be used instead. `NSApplication`'s `-beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:` will continue to work as it previously did, leaking contextInfo and failing when there is already an existing sheet.
*/
- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(nullable id)modalDelegate didEndSelector:(nullable SEL)didEndSelector contextInfo:(null_unspecified void *)contextInfo API_DEPRECATED("Use -[NSWindow beginSheet:completionHandler:] instead", macos(10.0,10.10));
- (void)endSheet:(NSWindow *)sheet API_DEPRECATED("Use -[NSWindow endSheet:] instead", macos(10.0,10.10));
@@ -607,7 +695,8 @@
- (nullable NSWindow *)makeWindowsPerform:(SEL)selector inOrder:(BOOL)flag API_DEPRECATED("Use -enumerateWindowsWithOptions:usingBlock: instead", macos(10.0,10.14));
-/* This method is deprecated as of macOS 10.12. Beginning in OS X 10.11 it would always return nil. Prior to this it would return an undefined graphics context that was not generally suitable for drawing.
+/**
+ This method is deprecated as of macOS 10.12. Beginning in OS X 10.11 it would always return nil. Prior to this it would return an undefined graphics context that was not generally suitable for drawing.
*/
@property (nullable, readonly, strong) NSGraphicsContext *context API_DEPRECATED("This method always returns nil. If you need access to the current drawing context, use [NSGraphicsContext currentContext] inside of a draw operation.", macos(10.0,10.12));
@@ -616,4 +705,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplicationScripting.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplicationScripting.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplicationScripting.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplicationScripting.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSApplicationScripting.h
AppKit Framework
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSDocument, NSWindow;
@@ -34,4 +34,4 @@
#endif
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSArrayController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSArrayController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSArrayController.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSArrayController.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSArrayController.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <Foundation/NSArray.h>
#import <Foundation/NSPredicate.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSIndexSet, NSMutableIndexSet, NSSortDescriptor;
@@ -78,5 +78,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAttributedString.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
#if !__has_include(<UIFoundation/NSAttributedString.h>)
/*
NSAttributedString.h
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
This file defines Application Kit extensions to NSAttributedString and NSMutableAttributedString.
@@ -17,7 +17,7 @@
@class NSFileWrapper;
@class NSURL;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
/************************ Attributes ************************/
@@ -42,13 +42,9 @@
APPKIT_EXTERN NSAttributedStringKey NSBaselineOffsetAttributeName API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0)); // NSNumber containing floating point value, in points; offset from baseline, default 0
APPKIT_EXTERN NSAttributedStringKey NSUnderlineColorAttributeName API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0)); // NSColor, default nil: same as foreground color
APPKIT_EXTERN NSAttributedStringKey NSStrikethroughColorAttributeName API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0)); // NSColor, default nil: same as foreground color
-APPKIT_EXTERN NSAttributedStringKey NSObliquenessAttributeName API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0)); // NSNumber containing floating point value; skew to be applied to glyphs, default 0: no skew
-APPKIT_EXTERN NSAttributedStringKey NSExpansionAttributeName API_AVAILABLE(macos(10.0), ios(7.0), watchos(2.0), tvos(9.0)); // NSNumber containing floating point value; log of expansion factor to be applied to glyphs, default 0: no expansion
APPKIT_EXTERN NSAttributedStringKey NSWritingDirectionAttributeName API_AVAILABLE(macos(10.6), ios(7.0), watchos(2.0), tvos(9.0)); // NSArray of NSNumbers representing the nested levels of writing direction overrides as defined by Unicode LRE, RLE, LRO, and RLO characters. The control characters can be obtained by masking NSWritingDirection and NSWritingDirectionFormatType values. LRE: NSWritingDirectionLeftToRight|NSWritingDirectionEmbedding, RLE: NSWritingDirectionRightToLeft|NSWritingDirectionEmbedding, LRO: NSWritingDirectionLeftToRight|NSWritingDirectionOverride, RLO: NSWritingDirectionRightToLeft|NSWritingDirectionOverride,
-APPKIT_EXTERN NSAttributedStringKey NSVerticalGlyphFormAttributeName API_AVAILABLE(macos(10.7), ios(6.0), watchos(2.0), tvos(9.0)); // An NSNumber containing an integer value. 0 means horizontal text. 1 indicates vertical text. If not specified, it could follow higher-level vertical orientation settings. Currently on iOS, it's always horizontal. The behavior for any other value is undefined.
-
APPKIT_EXTERN NSAttributedStringKey NSCursorAttributeName; // NSCursor, default IBeamCursor
APPKIT_EXTERN NSAttributedStringKey NSToolTipAttributeName; // NSString, default nil: no tooltip
@@ -306,7 +302,11 @@
APPKIT_EXTERN NSAttributedStringKey NSCharacterShapeAttributeName API_DEPRECATED("This attribute is bound to a specific implementation of ATS feature and not generically supported by wide range of fonts. The majority of characters accessed through this API are now encoded in the Unicode standard. Use the CTFont feature API for fine control over character shape choices.", macos(10.0,10.11));
APPKIT_EXTERN NSAttributedStringKey NSUsesScreenFontsDocumentAttribute API_DEPRECATED("", macos(10.8,10.11));
+APPKIT_EXTERN NSAttributedStringKey NSObliquenessAttributeName API_DEPRECATED("This attribute is not supported with TextKit 2", macos(10.0, API_TO_BE_DEPRECATED), ios(7.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED)); // NSNumber containing floating point value; skew to be applied to glyphs, default 0: no skew
+APPKIT_EXTERN NSAttributedStringKey NSExpansionAttributeName API_DEPRECATED("This attribute is not supported with TextKit 2", macos(10.0, API_TO_BE_DEPRECATED), ios(7.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED)); // NSNumber containing floating point value; log of expansion factor to be applied to glyphs, default 0: no expansion
+APPKIT_EXTERN NSAttributedStringKey NSVerticalGlyphFormAttributeName API_DEPRECATED("This attribute is not supported with TextKit 2", macos(10.7, API_TO_BE_DEPRECATED), ios(6.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED)); // An NSNumber containing an integer value. 0 means horizontal text. 1 indicates vertical text. If not specified, it could follow higher-level vertical orientation settings. Currently on iOS, it's always horizontal. The behavior for any other value is undefined.
+
enum {
NSNoUnderlineStyle API_DEPRECATED("Use NSUnderlineStyleNone instead", macos(10.0,10.9)) = 0,
NSSingleUnderlineStyle API_DEPRECATED("Use NSUnderlineStyleSingle instead", macos(10.0,10.9))
@@ -335,7 +335,7 @@
- (BOOL)readFromData:(NSData *)data options:(NSDictionary *)options documentAttributes:(NSDictionary* _Nullable * _Nullable)dict API_DEPRECATED("Use -readFromData:options:documentAttributes:error: instead", macos(10.0,10.11));
@end
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSAttributedString.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBezierPath.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBezierPath.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBezierPath.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBezierPath.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSBezierPath.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSFont.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAffineTransform;
@@ -35,8 +35,10 @@
typedef NS_ENUM(NSUInteger, NSBezierPathElement) {
NSBezierPathElementMoveTo,
NSBezierPathElementLineTo,
- NSBezierPathElementCurveTo,
- NSBezierPathElementClosePath
+ NSBezierPathElementCubicCurveTo API_AVAILABLE(macos(14.0)),
+ NSBezierPathElementClosePath,
+ NSBezierPathElementQuadraticCurveTo API_AVAILABLE(macos(14.0)),
+ NSBezierPathElementCurveTo API_DEPRECATED_WITH_REPLACEMENT("NSBezierPathElementCubicCurveTo", macos(11.0, 14.0)) = NSBezierPathElementCubicCurveTo,
};
@interface NSBezierPath : NSObject <NSCopying, NSSecureCoding>
@@ -47,7 +49,14 @@
+ (NSBezierPath *)bezierPathWithRect:(NSRect)rect;
+ (NSBezierPath *)bezierPathWithOvalInRect:(NSRect)rect;
+ (NSBezierPath *)bezierPathWithRoundedRect:(NSRect)rect xRadius:(CGFloat)xRadius yRadius:(CGFloat)yRadius API_AVAILABLE(macos(10.5));
++ (NSBezierPath *)bezierPathWithCGPath:(CGPathRef)cgPath API_AVAILABLE(macos(14.0));
+// Getting the CGPath property returns a copied, autoreleasing, immutable CGPathRef; The CGPathRef will
+// only match the NSBezierPath until the NSBezierPath is mutated.
+// Setting the CGPath property will create an immutable copy of the provided CGPathRef; Any further
+// mutations of the path will not effect the NSBezierPath.
+@property (nonnull) CGPathRef CGPath API_AVAILABLE(macos(14.0)) CF_RETURNS_NOT_RETAINED;
+
// Immediate mode drawing of common paths.
+ (void)fillRect:(NSRect)rect;
@@ -73,6 +82,8 @@
- (void)curveToPoint:(NSPoint)endPoint
controlPoint1:(NSPoint)controlPoint1
controlPoint2:(NSPoint)controlPoint2;
+- (void)curveToPoint:(NSPoint)endPoint
+ controlPoint:(NSPoint)controlPoint API_AVAILABLE(macos(14.0));
- (void)closePath;
- (void)removeAllPoints;
@@ -84,6 +95,8 @@
- (void)relativeCurveToPoint:(NSPoint)endPoint
controlPoint1:(NSPoint)controlPoint1
controlPoint2:(NSPoint)controlPoint2;
+- (void)relativeCurveToPoint:(NSPoint)endPoint
+ controlPoint:(NSPoint)controlPoint API_AVAILABLE(macos(14.0));
// Path rendering parameters.
@@ -196,4 +209,4 @@
static const NSBezierPathElement NSClosePathBezierPathElement API_DEPRECATED_WITH_REPLACEMENT("NSBezierPathElementClosePath", macos(10.0, 11.0)) = NSBezierPathElementClosePath;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSBitmapImageRep.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/AppKitDefines.h>
#import <ApplicationServices/ApplicationServices.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class CIImage;
@@ -78,7 +78,7 @@
@interface NSBitmapImageRep : NSImageRep <NSSecureCoding>
-- (nullable instancetype)initWithFocusedViewRect:(NSRect)rect API_DEPRECATED("Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view.", macos(10.0,10.14));
+- (nullable instancetype)initWithFocusedViewRect:(NSRect)rect API_DEPRECATED("Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view.", macos(10.0, 10.14));
- (nullable instancetype)initWithBitmapDataPlanes:(unsigned char *_Nullable *_Nullable)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSColorSpaceName)colorSpaceName bytesPerRow:(NSInteger)rBytes bitsPerPixel:(NSInteger)pBits;
- (nullable instancetype)initWithBitmapDataPlanes:(unsigned char *_Nullable *_Nullable)planes pixelsWide:(NSInteger)width pixelsHigh:(NSInteger)height bitsPerSample:(NSInteger)bps samplesPerPixel:(NSInteger)spp hasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSColorSpaceName)colorSpaceName bitmapFormat:(NSBitmapFormat)bitmapFormat bytesPerRow:(NSInteger)rBytes bitsPerPixel:(NSInteger)pBits;
@@ -152,21 +152,21 @@
@end
-static const NSBitmapImageFileType NSTIFFFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeTIFF", macos(10.0,10.14)) = NSBitmapImageFileTypeTIFF;
-static const NSBitmapImageFileType NSBMPFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeBMP", macos(10.0,10.14)) = NSBitmapImageFileTypeBMP;
-static const NSBitmapImageFileType NSGIFFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeGIF", macos(10.0,10.14)) = NSBitmapImageFileTypeGIF;
-static const NSBitmapImageFileType NSJPEGFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeJPEG", macos(10.0,10.14)) = NSBitmapImageFileTypeJPEG;
-static const NSBitmapImageFileType NSPNGFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypePNG", macos(10.0,10.14)) = NSBitmapImageFileTypePNG;
-static const NSBitmapImageFileType NSJPEG2000FileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeJPEG2000", macos(10.0,10.14)) = NSBitmapImageFileTypeJPEG2000;
+static const NSBitmapImageFileType NSTIFFFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeTIFF", macos(10.0, 10.14)) = NSBitmapImageFileTypeTIFF;
+static const NSBitmapImageFileType NSBMPFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeBMP", macos(10.0, 10.14)) = NSBitmapImageFileTypeBMP;
+static const NSBitmapImageFileType NSGIFFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeGIF", macos(10.0, 10.14)) = NSBitmapImageFileTypeGIF;
+static const NSBitmapImageFileType NSJPEGFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeJPEG", macos(10.0, 10.14)) = NSBitmapImageFileTypeJPEG;
+static const NSBitmapImageFileType NSPNGFileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypePNG", macos(10.0, 10.14)) = NSBitmapImageFileTypePNG;
+static const NSBitmapImageFileType NSJPEG2000FileType API_DEPRECATED_WITH_REPLACEMENT("NSBitmapImageFileTypeJPEG2000", macos(10.0, 10.14)) = NSBitmapImageFileTypeJPEG2000;
static const NSBitmapFormat NSAlphaFirstBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaFirst", macos(10.5,10.14)) = NSBitmapFormatAlphaFirst;
-static const NSBitmapFormat NSAlphaNonpremultipliedBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaNonpremultiplied", macos(10.0,10.14)) = NSBitmapFormatAlphaNonpremultiplied;
-static const NSBitmapFormat NSFloatingPointSamplesBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatFloatingPointSamples", macos(10.0,10.14)) = NSBitmapFormatFloatingPointSamples;
+static const NSBitmapFormat NSAlphaNonpremultipliedBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaNonpremultiplied", macos(10.0, 10.14)) = NSBitmapFormatAlphaNonpremultiplied;
+static const NSBitmapFormat NSFloatingPointSamplesBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatFloatingPointSamples", macos(10.0, 10.14)) = NSBitmapFormatFloatingPointSamples;
static const NSBitmapFormat NS16BitLittleEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatSixteenBitLittleEndian", macos(10.5,10.14)) = NSBitmapFormatSixteenBitLittleEndian;
-static const NSBitmapFormat NS32BitLittleEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatThirtyTwoBitLittleEndian", macos(10.0,10.14)) = NSBitmapFormatThirtyTwoBitLittleEndian;
-static const NSBitmapFormat NS16BitBigEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatSixteenBitBigEndian", macos(10.0,10.14)) = NSBitmapFormatSixteenBitBigEndian;
-static const NSBitmapFormat NS32BitBigEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatThirtyTwoBitBigEndian", macos(10.0,10.14)) = NSBitmapFormatThirtyTwoBitBigEndian;
+static const NSBitmapFormat NS32BitLittleEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatThirtyTwoBitLittleEndian", macos(10.0, 10.14)) = NSBitmapFormatThirtyTwoBitLittleEndian;
+static const NSBitmapFormat NS16BitBigEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatSixteenBitBigEndian", macos(10.0, 10.14)) = NSBitmapFormatSixteenBitBigEndian;
+static const NSBitmapFormat NS32BitBigEndianBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatThirtyTwoBitBigEndian", macos(10.0, 10.14)) = NSBitmapFormatThirtyTwoBitBigEndian;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBox.h 2023-05-31 09:13:44
@@ -1,14 +1,14 @@
/*
NSBox.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFont;
@@ -86,4 +86,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSBrowser.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
static const NSAppKitVersion NSAppKitVersionNumberWithContinuousScrollingBrowser = 680.0;
@@ -252,7 +252,7 @@
*/
@property (strong) NSColor *backgroundColor API_AVAILABLE(macos(10.5));
-/* Begins editing the item at the specified path. event may be nil if programatically editing. The cell's contents will be selected if select is YES. Overriding this method will not affect the editing behavior of the browser.
+/* Begins editing the item at the specified path. event may be nil if programmatically editing. The cell's contents will be selected if select is YES. Overriding this method will not affect the editing behavior of the browser.
*/
- (void)editItemAtIndexPath:(NSIndexPath *)indexPath withEvent:(nullable NSEvent *)event select:(BOOL)select API_AVAILABLE(macos(10.6));
@@ -445,7 +445,7 @@
*/
- (void)browser:(NSBrowser *)browser didChangeLastColumn:(NSInteger)oldLastColumn toColumn:(NSInteger)column NS_SWIFT_UI_ACTOR;
-/* Optional - Return a set of new indexes to select when the user changes the selection with the keyboard or mouse. This method may be called multiple times with one new index added to the existing selection to find out if a particular index can be selected when the user is extending the selection with the keyboard or mouse. Note that 'proposedSelectionIndexes' will contain the entire newly suggested selection, and you can return the exsiting selection to avoid changing the selection. This method only works for item-based NSBrowsers.
+/* Optional - Return a set of new indexes to select when the user changes the selection with the keyboard or mouse. This method may be called multiple times with one new index added to the existing selection to find out if a particular index can be selected when the user is extending the selection with the keyboard or mouse. Note that 'proposedSelectionIndexes' will contain the entire newly suggested selection, and you can return the existing selection to avoid changing the selection. This method only works for item-based NSBrowsers.
*/
- (NSIndexSet *)browser:(NSBrowser *)browser selectionIndexesForProposedSelection:(NSIndexSet *)proposedSelectionIndexes inColumn:(NSInteger)column NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.6));
@@ -487,4 +487,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowserCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowserCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowserCell.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBrowserCell.h 2023-05-31 09:13:40
@@ -1,14 +1,14 @@
/*
NSBrowserCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImage;
@@ -34,4 +34,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSButton.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSUserInterfaceCompression.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSSound, NSImageSymbolConfiguration;
@@ -101,8 +101,6 @@
/*! Gets the initial delay and repeat interval, in seconds, for repeated action messages sent when `continuous` is YES. Both parameters to this method must not be NULL. */
- (void)getPeriodicDelay:(float *)delay interval:(float *)interval;
-#pragma mark Configuring Button Images
-
/*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
@property NSBezelStyle bezelStyle;
@@ -115,6 +113,15 @@
/* A Boolean value that determines whether the button displays its border only when the pointer is over it. */
@property BOOL showsBorderOnlyWhileMouseInside;
+/*! Applies a custom color to the button's bezel, in appearances that support it. A nil value indicates an unmodified button appearance. The default value is nil. */
+@property (nullable, copy) NSColor *bezelColor API_AVAILABLE(macos(10.12.2));
+
+/*! Applies a tint color to template image and text content, in combination with other theme-appropriate effects. Only applicable to borderless buttons. A nil value indicates the standard set of effects without color modification. The default value is nil. Non-template images and attributed string values are not affected by the contentTintColor. */
+@property (nullable, copy) NSColor *contentTintColor API_AVAILABLE(macos(10.14));
+
+
+#pragma mark Configuring Button Images
+
/*! The image that appears on the button when it’s in an off state, or nil if there is no such image. */
@property (nullable, strong) NSImage *image;
@@ -135,12 +142,6 @@
*/
@property (nullable, copy) NSImageSymbolConfiguration *symbolConfiguration API_AVAILABLE(macos(11));
-/*! Applies a custom color to the button's bezel, in appearances that support it. A nil value indicates an unmodified button appearance. The default value is nil. */
-@property (nullable, copy) NSColor *bezelColor API_AVAILABLE(macos(10.12.2));
-
-/*! Applies a tint color to template image and text content, in combination with other theme-appropriate effects. Only applicable to borderless buttons. A nil value indicates the standard set of effects without color modification. The default value is nil. Non-template images and attributed string values are not affected by the contentTintColor. */
-@property (nullable, copy) NSColor *contentTintColor API_AVAILABLE(macos(10.14));
-
#pragma mark Managing Button State
/*! The button's state. Buttons support the off and on states, and an additional mixed state depending on the value of the `allowsMixedState` property. */
@@ -182,5 +183,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonCell.h 2023-05-31 09:13:48
@@ -1,14 +1,14 @@
/*
NSButtonCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSActionCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAttributedString, NSFont, NSImage, NSSound;
@@ -27,19 +27,29 @@
};
typedef NS_ENUM(NSUInteger, NSBezelStyle) {
- NSBezelStyleRounded = 1,
- NSBezelStyleRegularSquare = 2,
- NSBezelStyleDisclosure = 5,
- NSBezelStyleShadowlessSquare = 6,
- NSBezelStyleCircular = 7,
- NSBezelStyleTexturedSquare = 8,
- NSBezelStyleHelpButton = 9,
- NSBezelStyleSmallSquare = 10,
- NSBezelStyleTexturedRounded = 11,
- NSBezelStyleRoundRect = 12,
- NSBezelStyleRecessed = 13,
- NSBezelStyleRoundedDisclosure = 14,
- NSBezelStyleInline API_AVAILABLE(macos(10.7)) = 15,
+ NSBezelStyleAutomatic API_AVAILABLE(macos(14.0)) = 0,
+ NSBezelStylePush = 1,
+ NSBezelStyleFlexiblePush = 2,
+ NSBezelStyleDisclosure = 5,
+ NSBezelStyleCircular = 7,
+ NSBezelStyleHelpButton = 9,
+ NSBezelStyleSmallSquare = 10,
+ NSBezelStyleToolbar = 11,
+ NSBezelStyleAccessoryBarAction = 12,
+ NSBezelStyleAccessoryBar = 13,
+ NSBezelStylePushDisclosure = 14,
+ NSBezelStyleBadge API_AVAILABLE(macos(10.7)) = 15,
+
+ 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,
+
+ NSBezelStyleRounded API_DEPRECATED_WITH_REPLACEMENT("NSBezelStylePush", macos(10.0, API_TO_BE_DEPRECATED)) = NSBezelStylePush,
+ NSBezelStyleRegularSquare API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleFlexiblePush", macos(10.0, API_TO_BE_DEPRECATED)) = NSBezelStyleFlexiblePush,
+ NSBezelStyleTexturedRounded API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleToolbar", macos(10.0, API_TO_BE_DEPRECATED)) = NSBezelStyleToolbar,
+ NSBezelStyleRoundRect API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleAccessoryBarAction", macos(10.0, API_TO_BE_DEPRECATED)) = NSBezelStyleAccessoryBarAction,
+ NSBezelStyleRecessed API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleAccessoryBar", macos(10.0, API_TO_BE_DEPRECATED)) = NSBezelStyleAccessoryBar,
+ NSBezelStyleRoundedDisclosure API_DEPRECATED_WITH_REPLACEMENT("NSBezelStylePushDisclosure", macos(10.0, API_TO_BE_DEPRECATED)) = NSBezelStylePushDisclosure,
+ NSBezelStyleInline API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleBadge", macos(10.7, API_TO_BE_DEPRECATED)) = NSBezelStyleBadge,
};
@interface NSButtonCell : NSActionCell
@@ -116,24 +126,23 @@
static const NSButtonType NSMomentaryPushButton API_DEPRECATED("This constant is misnamed and has the same effect as NSButtonTypeMomentaryLight. Use that name instead, or switch to NSButtonTypeMomentaryPushIn.", macos(10.0,10.9)) = NSButtonTypeMomentaryLight;
static const NSButtonType NSMomentaryLight API_DEPRECATED("This constant is misnamed and has the same effect as NSButtonTypeMomentaryPushIn. Use that name instead, or switch to NSButtonTypeMomentaryLight.", macos(10.0,10.9)) = NSButtonTypeMomentaryPushIn;
-static const NSBezelStyle NSRoundedBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRounded", macos(10.0,10.14)) = NSBezelStyleRounded;
-static const NSBezelStyle NSRegularSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRegularSquare", macos(10.0,10.14)) = NSBezelStyleRegularSquare;
+static const NSBezelStyle NSRoundedBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStylePush", macos(10.0,10.14)) = NSBezelStylePush;
+static const NSBezelStyle NSRegularSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleFlexiblePush", macos(10.0,10.14)) = NSBezelStyleFlexiblePush;
static const NSBezelStyle NSDisclosureBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleDisclosure", macos(10.0,10.14)) = NSBezelStyleDisclosure;
static const NSBezelStyle NSShadowlessSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleShadowlessSquare", macos(10.0,10.14)) = NSBezelStyleShadowlessSquare;
static const NSBezelStyle NSCircularBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleCircular", macos(10.0,10.14)) = NSBezelStyleCircular;
static const NSBezelStyle NSTexturedSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleTexturedSquare", macos(10.0,10.14)) = NSBezelStyleTexturedSquare;
static const NSBezelStyle NSHelpButtonBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleHelpButton", macos(10.0,10.14)) = NSBezelStyleHelpButton;
static const NSBezelStyle NSSmallSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleSmallSquare", macos(10.0,10.14)) = NSBezelStyleSmallSquare;
-static const NSBezelStyle NSTexturedRoundedBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleTexturedRounded", macos(10.0,10.14)) = NSBezelStyleTexturedRounded;
-static const NSBezelStyle NSRoundRectBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRoundRect", macos(10.0,10.14)) = NSBezelStyleRoundRect;
-static const NSBezelStyle NSRecessedBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRecessed", macos(10.0,10.14)) = NSBezelStyleRecessed;
-static const NSBezelStyle NSRoundedDisclosureBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRoundedDisclosure", macos(10.0,10.14)) = NSBezelStyleRoundedDisclosure;
-static const NSBezelStyle NSInlineBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleInline", macos(10.0,10.14)) = NSBezelStyleInline;
+static const NSBezelStyle NSTexturedRoundedBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleToolbar", macos(10.0,10.14)) = NSBezelStyleToolbar;
+static const NSBezelStyle NSRoundRectBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleAccessoryBarAction", macos(10.0,10.14)) = NSBezelStyleAccessoryBarAction;
+static const NSBezelStyle NSRecessedBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleAccessoryBar", macos(10.0,10.14)) = NSBezelStyleAccessoryBar;
+static const NSBezelStyle NSRoundedDisclosureBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStylePushDisclosure", macos(10.0,10.14)) = NSBezelStylePushDisclosure;
+static const NSBezelStyle NSInlineBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleBadge", macos(10.0,10.14)) = NSBezelStyleBadge;
static const NSBezelStyle NSSmallIconButtonBezelStyle API_DEPRECATED("This bezel style is obsolete and should not be used.", macos(10.0,10.0)) = (NSBezelStyle)2;
-static const NSBezelStyle NSThickSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRegularSquare", macos(10.0,10.12)) = (NSBezelStyle)3;
-static const NSBezelStyle NSThickerSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleRegularSquare", macos(10.0,10.12)) = (NSBezelStyle)4;
-
+static const NSBezelStyle NSThickSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleFlexiblePush", macos(10.0,10.12)) = (NSBezelStyle)3;
+static const NSBezelStyle NSThickerSquareBezelStyle API_DEPRECATED_WITH_REPLACEMENT("NSBezelStyleFlexiblePush", macos(10.0,10.12)) = (NSBezelStyle)4;
@interface NSButtonCell(NSDeprecated)
/* The NSGradientType enumeration and corresponding gradientType property are not used on macOS. */
@@ -155,5 +164,5 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonTouchBarItem.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButtonTouchBarItem.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSButtonTouchBarItem.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
@class UIColor, UIImage;
#endif
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
API_AVAILABLE(macos(10.15), ios(13.0))
@interface NSButtonTouchBarItem : NSTouchBarItem
@@ -51,4 +51,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCIImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCIImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCIImageRep.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCIImageRep.h 2023-05-31 09:13:40
@@ -1,7 +1,7 @@
/*
NSCIImageRep.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/AppKitDefines.h>
#import <CoreImage/CIImage.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSBitmapImageRep;
@@ -29,5 +29,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCachedImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCachedImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCachedImageRep.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCachedImageRep.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSCachedImageRep.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSCandidateListTouchBarItem.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
@protocol NSCandidateListTouchBarItemDelegate;
@protocol NSTextInputClient;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
/* NSCandidateListTouchBarItem is an NSTouchBarItem that shows the word completion candidates for assisting users typing with text input capable views. In addition to candidates supplied by its client, the NSTouchBarItem can show candidates coming from the active input method. NSCandidateListTouchBarItem has two states: expanded and collapsed. When expanded, the item replaces any NSTouchBarItems occupying its location on the bar.
@@ -87,4 +87,4 @@
APPKIT_EXTERN NSTouchBarItemIdentifier const NSTouchBarItemIdentifierCandidateList API_AVAILABLE(macos(10.12.2)) API_UNAVAILABLE(macCatalyst);
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -14,7 +14,7 @@
#import <AppKit/NSAccessibilityProtocols.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAttributedString, NSDraggingImageComponent, NSEvent, NSFont, NSFormatter, NSImage, NSMenu, NSText, NSTextView, NSView;
@@ -371,4 +371,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClickGestureRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClickGestureRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClickGestureRecognizer.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClickGestureRecognizer.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSClickGestureRecognizer.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSGestureRecognizer.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10))
@@ -27,4 +27,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClipView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClipView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClipView.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSClipView.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSClipView.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <Foundation/Foundation.h>
#import <Availability.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor;
@@ -60,4 +60,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSCollectionView.h
Application Kit
- Copyright (c) 2005-2021, Apple Inc.
+ Copyright (c) 2005-2023, Apple Inc.
All rights reserved.
*/
@@ -11,6 +11,9 @@
#import <AppKit/AppKitDefines.h>
#import <Foundation/NSArray.h>
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+
typedef NS_ENUM(NSInteger, NSCollectionViewDropOperation) {
NSCollectionViewDropOn = 0,
NSCollectionViewDropBefore = 1,
@@ -50,9 +53,6 @@
@class NSButton, NSCollectionView, NSCollectionViewLayout, NSCollectionViewLayoutAttributes, NSCollectionViewTransitionLayout, NSDraggingImageComponent, NSImageView, NSIndexSet, NSMutableIndexSet, NSNib, NSTextField;
@protocol NSCollectionViewDataSource, NSCollectionViewDelegate, NSCollectionViewPrefetching;
-NS_ASSUME_NONNULL_BEGIN
-APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-
/* NSCollectionViewElement declares functionality shared by (1) NSCollectionViewItems and (2) "supplementary" or "decoration" views that can be added to an NSCollectionView. Each such reusable entity has the ability to be reset to its initial state by being sent -prepareForReuse, the ability to take size, position, and other state from an NSCollectionViewLayoutAttributes instance, and the ability to respond to transitions from one layout to another. Note that, since these methods are all optional and invoked only when found to be present, all existing NSView classes can be considered conforming, and are therefore eligible to be used a supplementary and decorative views. NSView and NSCollectionViewElement both conform to NSUserInterfaceItemIdentification, which provides an "identifier" property that CollectionView uses to track an item or supplementary/decoration view's kind.
*/
@protocol NSCollectionViewElement <NSObject, NSUserInterfaceItemIdentification>
@@ -622,7 +622,6 @@
@end
-#if !TARGET_OS_IPHONE
@interface NSIndexPath (NSCollectionViewAdditions)
+ (NSIndexPath *)indexPathForItem:(NSInteger)item inSection:(NSInteger)section API_AVAILABLE(macos(10.11));
@@ -631,7 +630,6 @@
@property (readonly) NSInteger section API_AVAILABLE(macos(10.11));
@end
-#endif // !TARGET_OS_IPHONE
@interface NSSet (NSCollectionViewAdditions)
@@ -673,4 +671,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h 2023-05-31 09:13:44
@@ -1,14 +1,13 @@
/*
NSCollectionViewCompositionalLayout.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
#import <TargetConditionals.h>
+#if TARGET_OS_OSX
-#if !TARGET_OS_IPHONE
-
#import <AppKit/NSCollectionViewLayout.h>
#import <AppKit/NSCollectionViewFlowLayout.h> // for NSCollectionViewScrollDirection
#import <AppKit/AppKitDefines.h>
@@ -17,7 +16,7 @@
@protocol NSCollectionLayoutContainer;
@protocol NSCollectionLayoutVisibleItem;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSCollectionLayoutSection;
@@ -51,7 +50,7 @@
/* Specifies edge insets that should be interpreted according to the user interface layout direction. Specify positive values to inset, negative values to outset.
*/
-typedef struct __attribute__((objc_boxable)) NSDirectionalEdgeInsets {
+typedef struct __attribute__((objc_boxable)) NS_SWIFT_SENDABLE NSDirectionalEdgeInsets {
CGFloat top;
CGFloat leading;
CGFloat bottom;
@@ -80,7 +79,6 @@
}
#endif
-
/* End temporary declarations */
@@ -612,6 +610,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
-
-#endif
+NS_HEADER_AUDIT_END(nullability, sendability)
+#endif // TARGET_OS_OSX
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewFlowLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewFlowLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewFlowLayout.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewFlowLayout.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSCollectionViewFlowLayout.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -14,7 +14,7 @@
NSCollectionViewScrollDirectionHorizontal
} API_AVAILABLE(macos(10.11));
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
APPKIT_EXTERN NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionHeader API_AVAILABLE(macos(10.11));
@@ -75,4 +75,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewGridLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewGridLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewGridLayout.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewGridLayout.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSCollectionViewGridLayout.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
@class NSColor;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
/* NSCollectionView's default "Grid" layout, which matches NSCollectionView's layout behavior on OS X 10.5 through 10.10. When you create a new NSCollectionView, its collectionViewLayout property defaults to an instance of NSCollectionViewGridLayout.
@@ -64,4 +64,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSCollectionViewLayout.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -23,7 +23,7 @@
@class NSIndexPath;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSCollectionViewDecorationElementKind NS_SWIFT_BRIDGED_TYPEDEF;
@@ -185,4 +185,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewTransitionLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewTransitionLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewTransitionLayout.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewTransitionLayout.h 2023-05-31 09:13:46
@@ -1,14 +1,14 @@
/*
NSCollectionViewTransitionLayout.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSCollectionViewLayout.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSCollectionViewTransitionLayoutAnimatedKey NS_SWIFT_BRIDGED_TYPEDEF;
@@ -29,4 +29,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSColor.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -50,7 +50,7 @@
#import <AppKit/AppKitDefines.h>
#import <CoreImage/CIColor.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImage, NSColorSpace, NSAppearance;
@@ -73,6 +73,7 @@
NSColorSystemEffectRollover,
} API_AVAILABLE(macos(10.14));
+NS_SWIFT_SENDABLE
@interface NSColor : NSObject <NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting>
- (instancetype)init NS_DESIGNATED_INITIALIZER;
@@ -190,6 +191,7 @@
@property (class, strong, readonly) NSColor *secondaryLabelColor API_AVAILABLE(macos(10.10)); // Foreground color for secondary static text and related elements
@property (class, strong, readonly) NSColor *tertiaryLabelColor API_AVAILABLE(macos(10.10)); // Foreground color for disabled static text and related elements
@property (class, strong, readonly) NSColor *quaternaryLabelColor API_AVAILABLE(macos(10.10)); // Foreground color for large secondary or disabled static text, separators, large glyphs/icons, etc
+@property (class, strong, readonly) NSColor *quinaryLabelColor API_AVAILABLE(macos(11.0)); /// Used for large scale images or subtle decorative elements; not for general foreground content.
@property (class, strong, readonly) NSColor *linkColor API_AVAILABLE(macos(10.10)); // Foreground color for standard system links
@property (class, strong, readonly) NSColor *placeholderTextColor API_AVAILABLE(macos(10.10)); // Foreground color for placeholder text in controls or text views
@@ -214,6 +216,7 @@
/* Text Colors */
@property (class, strong, readonly) NSColor *textColor; // Document text
@property (class, strong, readonly) NSColor *textBackgroundColor; // Document text background
+@property (class, strong, readonly) NSColor *textInsertionPointColor API_AVAILABLE(macos(14.0));
@property (class, strong, readonly) NSColor *selectedTextColor; // Selected document text
@property (class, strong, readonly) NSColor *selectedTextBackgroundColor; // Selected document text background
@@ -247,6 +250,19 @@
@property (class, strong, readonly) NSColor *systemMintColor API_AVAILABLE(macos(10.12));
@property (class, strong, readonly) NSColor *systemCyanColor API_AVAILABLE(macos(12.0));
+/*! Fill colors for UI elements.
+ These are meant to be used over the background colors, since their alpha component is less than 1.
+ */
+/// systemFillColor is appropriate for filling thin shapes, such as the track of a slider.
+@property (class, strong, readonly) NSColor *systemFillColor API_AVAILABLE(macos(14.0));
+/// secondarySystemFillColor is appropriate for filling small-size shapes, such as the backing of a progress indicator.
+@property (class, strong, readonly) NSColor *secondarySystemFillColor API_AVAILABLE(macos(14.0));
+/// tertiarySystemFillColor is appropriate for filling medium-size shapes, such as the backing of a switch.
+@property (class, strong, readonly) NSColor *tertiarySystemFillColor API_AVAILABLE(macos(14.0));
+/// quaternarySystemFillColor is appropriate for filling large areas, such as a group box or tab pane.
+@property (class, strong, readonly) NSColor *quaternarySystemFillColor API_AVAILABLE(macos(14.0));
+/// quinarySystemFillColor is appropriate for filling large areas that require subtle emphasis, such as content of a form..
+@property (class, strong, readonly) NSColor *quinarySystemFillColor API_AVAILABLE(macos(14.0));
/*! A dynamic color that reflects the user's current preferred accent color. This color automatically updates when the accent color preference changes. Do not make assumptions about the color space of this color, which may change across releases. */
@property (class, strong, readonly) NSColor *controlAccentColor API_AVAILABLE(macos(10.14));
@@ -338,7 +354,7 @@
/* Return the image used for the pattern color. Will raise exception for colors other than type == NSColorTypePattern.
*/
-@property (readonly, strong) NSImage *patternImage;
+@property (readonly, copy) NSImage *patternImage;
/* Get the alpha component. Valid on all colors; for colors which do not have alpha components, this will return 1.0 (opaque).
@@ -362,11 +378,11 @@
@property (readonly) CGColorRef CGColor NS_RETURNS_INNER_POINTER API_AVAILABLE(macos(10.8)); // Returns an autoreleased CGColor. This will never be NULL, although the return value may be an approximation in some cases, so there isn't guaranteed round-trip fidelity.
-/* Global flag for determining whether an application supports alpha. This flag is consulted when an application imports alpha (through color dragging, for instance). The value of this flag also determines whether the color panel has an opacity slider. This value is YES by default, indicating that the opacity components of imported colors will be set to 1.0. If an application wants alpha, it can either set the "NSIgnoreAlpha" default to NO or call the set method below.
+/* Global flag for determining whether an application supports alpha. This flag is consulted when an application imports alpha (through color dragging, for instance). The value of this flag also determines whether the color panel has an opacity slider. This value is NO by default as of macOS 14.0.
-This method provides a global approach to removing alpha which might not always be appropriate. Applications which need to import alpha sometimes should set this flag to NO and explicitly make colors opaque in cases where it matters to them.
+This method provides a global approach to removing alpha which might not always be appropriate, and is deprecated as of macOS 14.0. Applications which need to disable alpha sometimes should use more fine-grained API to control alpha behavior for individual controls.
*/
-@property (class) BOOL ignoresAlpha;
+@property (class) BOOL ignoresAlpha NS_SWIFT_UI_ACTOR API_DEPRECATED("Use `showsAlpha` in `NSColorPanel` and `supportsAlpha` in `NSColorWell` to control alpha behavior for individual controls.", macos(10.0, 14.0));
@end
@@ -441,4 +457,4 @@
APPKIT_EXTERN NSNotificationName NSSystemColorsDidChangeNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorList.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorList.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorList.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorList.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSColorList.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -18,7 +18,7 @@
#import <AppKit/AppKitDefines.h>
#import <CoreFoundation/CFDictionary.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSColorListName NS_SWIFT_BRIDGED_TYPEDEF;
@@ -89,5 +89,5 @@
APPKIT_EXTERN NSNotificationName NSColorListDidChangeNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h 2023-03-09 19:08:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSColorPanel.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColorList, NSMutableArray;
@@ -90,5 +90,5 @@
static const NSColorPanelMode NSCrayonModeColorPanel API_DEPRECATED_WITH_REPLACEMENT("NSColorPanelModeCrayon", macos(10.0,10.14)) = NSColorPanelModeCrayon;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicker.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicker.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicker.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicker.h 2023-05-31 09:13:40
@@ -1,14 +1,14 @@
/*
NSColorPicker.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSColorPicking.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSColorPicker : NSObject <NSColorPickingDefault>
@@ -27,4 +27,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPickerTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPickerTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPickerTouchBarItem.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPickerTouchBarItem.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSColorPickerTouchBarItem.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
@class UIImage, UIColor;
#endif
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@class NSViewController, NSColor, NSImage, NSString, NSColorList, NSColorSpace;
@@ -59,4 +59,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicking.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicking.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicking.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPicking.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSColorPicking.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSColorPanel.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSButtonCell, NSColor, NSColorPanel, NSColorList, NSImage, NSView;
@@ -79,5 +79,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h 2023-05-31 09:13:48
@@ -1,14 +1,14 @@
/*
NSColorSampler.h
Application Kit
- Copyright (c) 2018-2021, Apple Inc.
+ Copyright (c) 2018-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor;
@@ -31,4 +31,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSpace.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSpace.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSpace.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorSpace.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSColorSpace.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/AppKitDefines.h>
#import <ApplicationServices/ApplicationServices.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSData;
@@ -28,6 +28,7 @@
NSColorSpaceModelPatterned
};
+NS_SWIFT_SENDABLE
@interface NSColorSpace : NSObject <NSSecureCoding>
- (nullable instancetype)initWithICCProfileData:(NSData *)iccData;
@@ -82,7 +83,7 @@
static const NSColorSpaceModel NSPatternColorSpaceModel API_DEPRECATED_WITH_REPLACEMENT("NSColorSpaceModelPatterned", macos(10.0,10.14)) = NSColorSpaceModelPatterned;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h 2023-05-31 09:13:49
@@ -1,14 +1,14 @@
/*
NSColorWell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSControl.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSInteger, NSColorWellStyle) {
@@ -39,8 +39,11 @@
@property (nullable, weak) id pulldownTarget API_AVAILABLE(macos(13.0)); /// The target which `pulldownAction` is sent to. This property only applicable when `colorWellStyle` is `NSColorWellStyleExpanded` or `NSColorWellStyleMinimal`.
@property (nullable) SEL pulldownAction API_AVAILABLE(macos(13.0)); /// The action sent to `pulldownTarget` when the user interacts with the well. This property only applicable when `colorWellStyle` is `NSColorWellStyleExpanded` or `NSColorWellStyleMinimal`. If no action is set, the well will show the system color picker popover.
+/// Controls alpha support for the current color well, and the visibility of alpha slider in the color panel.
+/// When `NSColor.ignoresAlpha` (deprecated) is set to `YES`, this property will always return `NO` and alpha is not supported globally.
+@property BOOL supportsAlpha API_AVAILABLE(macos(14.0));
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBox.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBox.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBox.h 2023-03-09 01:14:35
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBox.h 2023-05-31 09:13:36
@@ -1,7 +1,7 @@
/*
NSComboBox.h
Application Kit
- Copyright (c) 1996-2021, Apple Inc.
+ Copyright (c) 1996-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSTextField.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
APPKIT_EXTERN NSNotificationName NSComboBoxWillPopUpNotification;
@@ -85,4 +85,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBoxCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBoxCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBoxCell.h 2023-03-09 01:14:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboBoxCell.h 2023-05-31 09:13:36
@@ -1,7 +1,7 @@
/*
NSComboBoxCell.h
Application Kit
- Copyright (c) 1996-2021, Apple Inc.
+ Copyright (c) 1996-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSTextFieldCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSButtonCell, NSTableView;
@@ -69,4 +69,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboButton.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboButton.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboButton.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSComboButton.h 2023-05-31 09:13:47
@@ -1,13 +1,13 @@
/*
NSComboButton.h
Application Kit
- Copyright (c) 2021, Apple Inc.
+ Copyright (c) 2021-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSControl.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(13.0))
@@ -68,4 +68,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSControl.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSCell, NSFont, NSTextView, NSNotification, NSAttributedString, NSFormatter;
@@ -151,4 +151,4 @@
#endif
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSController.h 2023-03-09 01:14:34
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSController.h 2023-05-31 09:13:35
@@ -1,7 +1,7 @@
/*
NSController.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/AppKitDefines.h>
#import <CoreFoundation/CoreFoundation.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMutableArray, NSMutableDictionary, NSMutableSet;
@@ -29,5 +29,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCursor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCursor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCursor.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCursor.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSCursor.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@class NSColor, NSEvent, NSImage;
#if TARGET_OS_IPHONE
@@ -18,7 +18,7 @@
#endif
API_AVAILABLE(macos(10.0), ios(13.0))
-@interface NSCursor : NSObject <NSCoding>
+@interface NSCursor : NSObject <NSSecureCoding>
/** Returns the application’s current cursor. This is not necessarily the cursor that is currently being displayed on the system. If you need the currently displayed cursor, use `NSCursor.currentSystemCursor`.
*/
@@ -93,4 +93,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomImageRep.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomImageRep.h 2023-05-31 09:13:46
@@ -1,14 +1,14 @@
/*
NSCustomImageRep.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSImageRep.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSCustomImageRep : NSImageRep
@@ -24,5 +24,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomTouchBarItem.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCustomTouchBarItem.h 2023-05-31 09:13:48
@@ -1,14 +1,14 @@
/*
NSCustomTouchBarItem.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSTouchBarItem.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.12.2))
@@ -36,4 +36,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDataAsset.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDataAsset.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDataAsset.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDataAsset.h 2023-05-31 09:13:46
@@ -1,14 +1,14 @@
/*
NSDataAsset.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@@ -36,4 +36,4 @@
@end
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePicker.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePicker.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePicker.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePicker.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSDatePicker.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSDatePickerCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSCalendar, NSLocale, NSTimeZone;
@@ -69,5 +69,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePickerCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePickerCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePickerCell.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDatePickerCell.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSDatePickerCell.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSActionCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSUInteger, NSDatePickerStyle) {
@@ -112,5 +112,5 @@
static const NSDatePickerElementFlags NSEraDatePickerElementFlag API_DEPRECATED_WITH_REPLACEMENT("NSDatePickerElementFlagEra", macos(10.0, 11.0)) = NSDatePickerElementFlagEra;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDictionaryController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDictionaryController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDictionaryController.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDictionaryController.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSDictionaryController.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSArrayController.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
// NSDictionaryController transforms a dictionary into an array of key-value pairs that is displayed like any other array in an NSArrayController. For each key-value pair, the controller distinguishes between the actual "key" and the "localizedKey" (a user readable version of the key - see setLocalizedKeyDictionary:/-localizedKeyDictionary). If no localizedKeyDictionary is specified, the localized keys default to the keys.
@@ -50,5 +50,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDiffableDataSource.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDiffableDataSource.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDiffableDataSource.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDiffableDataSource.h 2023-05-31 09:13:47
@@ -1,17 +1,19 @@
/*
NSDiffableDataSource.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
#import <TargetConditionals.h>
+#if TARGET_OS_OSX
-#if !TARGET_OS_IPHONE
+#import <AppKit/AppKitDefines.h>
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
#import <AppKit/NSCollectionView.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
/* An NSDiffableDataSourceSnapshot represents the complete state of a UI element (e.g. NSCollectionView)
@@ -110,6 +112,8 @@
@property(copy,nullable) NSCollectionViewDiffableDataSourceSupplementaryViewProvider supplementaryViewProvider;
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
-#endif
+API_UNAVAILABLE_END
+#endif // TARGET_OS_OSX
+
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDockTile.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDockTile.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDockTile.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDockTile.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSDockTile.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
static const NSAppKitVersion NSAppKitVersionNumberWithDockTilePlugInSupport = 1001.0;
@@ -64,5 +64,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSDocument.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -17,7 +17,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSPreviewRepresentingActivityItem.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSData, NSDate, NSError, NSFileWrapper, NSMenuItem, NSPageLayout, NSPrintInfo, NSPrintOperation, NSSavePanel, NSSharingService, NSSharingServicePicker, NSUndoManager, NSURL, NSView, NSWindow, NSWindowController;
@@ -796,7 +796,7 @@
*/
- (NSArray<NSString *> *)writableTypesForSaveOperation:(NSSaveOperationType)saveOperation NS_SWIFT_NONISOLATED;
-/* For a specified type, and a particular kind of save operation, return a file name extension that can be appended to a base file name. The default implementation of this method invokes [[NSWorkspace sharedWorkspace] preferredFilenameExtensionForType:typeName] if the type is a UTI or, for backward binary compatibility with Mac OS 10.4 and earlier, invokes [[NSDocumentController sharedDocumentController] fileExtensionsFromType:typeName] and chooses the first file name extension in the returned array if not.
+/* For a specified type, and a particular kind of save operation, return a file name extension that can be appended to a base file name. The default implementation of this method invokes [UTType typeWithIdentifier:typeName].preferredFilenameExtension if the type is a UTI or, for backward binary compatibility with Mac OS 10.4 and earlier, invokes [[NSDocumentController sharedDocumentController] fileExtensionsFromType:typeName] and chooses the first file name extension in the returned array if not.
You can override this method to customize the appending of extensions to file names by NSDocument. It's invoked from a variety of places within AppKit itself.
*/
@@ -866,4 +866,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentController.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentController.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSDocumentController.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <Foundation/NSArray.h>
#import <Foundation/NSDate.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSDocument, NSError, NSMenuItem, NSMutableDictionary, NSOpenPanel, NSURL, NSWindow;
@@ -302,4 +302,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentScripting.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentScripting.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentScripting.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocumentScripting.h 2023-05-31 09:13:39
@@ -1,14 +1,14 @@
/*
NSDocumentScripting.h
AppKit Framework
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSDocument.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSCloseCommand;
@@ -29,4 +29,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDragging.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDragging.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDragging.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDragging.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSDragging.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -16,7 +16,7 @@
@protocol NSPasteboardWriting;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSDraggingItem, NSDraggingSession, NSImage, NSPasteboard, NSView, NSWindow;
@@ -210,4 +210,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingItem.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingItem.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSDraggingItem.h
Application Kit
- Copyright (c) 2010-2021, Apple Inc.
+ Copyright (c) 2010-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
@protocol NSPasteboardWriting;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString;
@@ -74,4 +74,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingSession.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingSession.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingSession.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDraggingSession.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSDraggingSession.h
Application Kit
- Copyright (c) 2010-2021, Apple Inc.
+ Copyright (c) 2010-2023, Apple Inc.
All rights reserved.
*/
@@ -14,7 +14,7 @@
@protocol NSDraggingSource, NSPasteboardWriting;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPasteboard, NSImage, NSDraggingItem;
@@ -51,4 +51,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDrawer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDrawer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDrawer.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDrawer.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSDrawer.h
Application Kit
- Copyright (c) 1999-2021, Apple Inc.
+ Copyright (c) 1999-2023, Apple Inc.
All rights reserved.
*/
@@ -14,7 +14,7 @@
#import <AppKit/NSResponder.h>
#import <AppKit/NSWindow.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSLock;
@@ -85,5 +85,5 @@
APPKIT_EXTERN NSNotificationName NSDrawerDidCloseNotification API_DEPRECATED("Drawers are deprecated; consider using NSSplitViewController", macos(10.0,10.13));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEPSImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEPSImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEPSImageRep.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEPSImageRep.h 2023-05-31 09:13:46
@@ -1,32 +1,44 @@
/*
NSEPSImageRep.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSImageRep.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-@class NSPDFImageRep;
-
+/// An object that can render an image from encapsulated PostScript (EPS) code.
+API_DEPRECATED("`NSEPSImageRep` instances cannot be created on macOS 14.0 and later", macos(10.0, 14.0))
@interface NSEPSImageRep : NSImageRep
-+ (nullable instancetype)imageRepWithData:(NSData *)epsData; /* Convenience of initWithData: */
+// MARK: - Creating Representations of Images from EPS Data
+
+/// Creates and returns a representation of an image initialized with the specified EPS data. Convenience of `-initWithData:`.
+/// - Note: This method always returns `nil` on macOS 14.0 and later.
++ (nullable instancetype)imageRepWithData:(NSData *)epsData;
+
+/// Returns a representation of an image initialized with the specified EPS data.
+/// - Note: This method always returns `nil` on macOS 14.0 and later.
- (nullable instancetype)initWithData:(NSData *)epsData;
-/* prepareGState is unused */
-- (void)prepareGState API_DEPRECATED("", macos(10.0,10.10));
+// MARK: - Getting Data
+/// The rectangle that bounds the image representation.
+@property (readonly) NSRect boundingBox;
+
+/// The EPS representation of the image representation.
@property (readonly, copy) NSData *EPSRepresentation;
-@property (readonly) NSRect boundingBox;
+// MARK: - Deprecated
+/// The `-[NSEPSImageRep draw]` method sends this message to itself just before rendering the EPS code. The default implementation of this method does nothing. It can be overridden in a subclass to prepare the graphics state as needed.
+- (void)prepareGState API_DEPRECATED("", macos(10.0, 10.10));
+
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
-
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSErrors.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSErrors.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSErrors.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSErrors.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSErrors.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
@class NSString;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
// The following strings are the names of exceptions the AppKit can raise
@@ -52,4 +52,4 @@
APPKIT_EXTERN NSExceptionName NSAccessibilityException API_DEPRECATED("Exceptions are no longer appropriate for indicating errors in accessibility API. Unexpected values should be handled through appropriate type checking.", macos(10.1,10.11));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSEvent.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -16,7 +16,7 @@
#import <IOKit/hidsystem/IOLLEvent.h>
#import <limits.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSGraphicsContext, NSWindow, NSTrackingArea;
@@ -628,4 +628,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseProvider.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseProvider.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseProvider.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseProvider.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSFilePromiseProvider.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSPasteboard.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@protocol NSFilePromiseProviderDelegate;
@@ -50,4 +50,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseReceiver.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseReceiver.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseReceiver.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFilePromiseReceiver.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSFilePromiseReceiver.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSPasteboard.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSOperationQueue;
@@ -42,4 +42,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapper.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapper.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapper.h 2023-03-09 01:14:33
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapper.h 2023-05-31 09:13:33
@@ -1,7 +1,7 @@
/*
NSFileWrapper.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapperExtensions.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapperExtensions.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapperExtensions.h 2023-03-09 01:14:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFileWrapperExtensions.h 2023-05-31 09:13:38
@@ -1,14 +1,14 @@
/*
NSFileWrapperExtensions.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSFileWrapper.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImage;
@@ -22,4 +22,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h 2023-05-31 09:13:42
@@ -1,7 +1,7 @@
/*
NSFont.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSCell.h> // for NSControlSize
#import <AppKit/NSFontDescriptor.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFontDescriptor, NSAffineTransform, NSGraphicsContext;
@@ -187,4 +187,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontAssetRequest.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontAssetRequest.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontAssetRequest.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontAssetRequest.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSFontAssetRequest.h
Application Kit
- Copyright (c) 2017-2021, Apple Inc.
+ Copyright (c) 2017-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
@class NSFontDescriptor;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_OPTIONS(NSUInteger, NSFontAssetRequestOptions) {
@@ -56,4 +56,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontCollection.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontCollection.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontCollection.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontCollection.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSFontCollection.h
Application Kit
- Copyright (c) 2010-2021, Apple Inc.
+ Copyright (c) 2010-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <Foundation/NSString.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFontDescriptor;
@@ -184,5 +184,5 @@
APPKIT_EXTERN NSFontCollectionName const NSFontCollectionRecentlyUsed API_AVAILABLE(macos(10.7)); // Collection automatically maintained by NSFontManager
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSFontDescriptor.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <Foundation/NSSet.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
/* Symbolic Font Traits */
@@ -241,4 +241,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontManager.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontManager.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSFontManager.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSMenu.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFont, NSFontPanel, NSMenu, NSFontDescriptor;
@@ -155,5 +155,5 @@
#endif
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontPanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontPanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontPanel.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontPanel.h 2023-05-31 09:13:47
@@ -1,14 +1,14 @@
/*
NSFontPanel.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSPanel.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFontPanel, NSMutableDictionary, NSFontManager, NSMutableArray, NSTableView, NSFontDescriptor, NSFont;
@@ -90,4 +90,4 @@
} API_DEPRECATED("", macos(10.0,10.0));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSForm.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSForm.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSForm.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSForm.h 2023-05-31 09:13:49
@@ -1,14 +1,14 @@
/*
NSForm.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSMatrix.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFormCell;
@@ -52,4 +52,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFormCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFormCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFormCell.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFormCell.h 2023-05-31 09:13:42
@@ -1,14 +1,14 @@
/*
NSFormCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSActionCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSFormCell : NSActionCell
@@ -54,4 +54,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSGestureRecognizer.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSTouch.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@protocol NSGestureRecognizerDelegate;
@@ -161,4 +161,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphGenerator.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphGenerator.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphGenerator.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphGenerator.h 2023-05-31 09:13:46
@@ -2,7 +2,7 @@
/*
NSGlyphGenerator.h
Application Kit
- Copyright (c) 1993-2021, Apple Inc.
+ Copyright (c) 1993-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
// NSGlyphGenerator is now deprecated. It will be formally deprecated in a future version of macOS. Use -layoutManager:shouldGenerateGlyphs:properties:characterIndexes:forGlyphRange: in order to customize the canonical glyph generation mapping
/* NSGlyphStorage layout options */
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
enum {
@@ -38,7 +38,7 @@
@end
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSGlyphGenerator.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphInfo.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphInfo.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphInfo.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlyphInfo.h 2023-05-31 09:13:48
@@ -1,14 +1,14 @@
#if !__has_include(<UIFoundation/NSGlyphInfo.h>)
/*
NSGlyphInfo.h
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSString.h>
#import <AppKit/NSFont.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@interface NSGlyphInfo : NSObject <NSCopying, NSSecureCoding>
@@ -42,7 +42,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSGlyphInfo.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGradient.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGradient.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGradient.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGradient.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSGradient.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <Foundation/NSGeometry.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSBezierPath, NSColor, NSColorSpace;
@@ -46,7 +46,7 @@
*/
-API_AVAILABLE(macos(10.5))
+API_AVAILABLE(macos(10.5)) NS_SWIFT_SENDABLE
@interface NSGradient : NSObject <NSCopying, NSSecureCoding>
/* Initializes a gradient with starting color at location 0.0 and ending color at location 1.0 The color space returned by [NSColorSpace genericRGBColorSpace] is used.
*/
@@ -139,5 +139,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h 2023-05-31 09:13:47
@@ -1,14 +1,14 @@
/*
NSGraphics.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSGeometry.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor, NSView;
@@ -236,16 +236,6 @@
APPKIT_EXTERN void NSEnableScreenUpdates(void) API_DEPRECATED("As of 10.11 it is not generally necessary to take explicit action to achieve visual atomicity. +[NSAnimationContext runAnimationGroup:] and other similar methods can be used when a stronger than normal need for visual atomicity is required. The NSAnimationContext methods do not suffer from the same performance problems as NSEnableScreenUpdates.", macos(10.0,10.11));
-/* Runs one of the standard system animation effects (display and sound).
-** 'centerLocation' represents the center, in screen coordinates, to show the effect.
-** 'size' specifies how big the effect should be. Use NSZeroSize to get the default size.
-** 'animationDelegate' is optionally, an object that wants to know when the effect has completed.
-** 'didEndSelector' will be invoked in the animationDelegate when the animation has completed.
-**
-** The didEndSelector should have the following signature:
-** - (void)animationEffectDidEnd:(void *)contextInfo;
-*/
-
typedef NS_ENUM(NSUInteger, NSAnimationEffect) {
// The default effect used to indicate removal of an item from a collection,
// such as toolbar (indicates removal, without destroying the underlying data).
@@ -253,9 +243,9 @@
// An effect showing a puff of smoke.
NSAnimationEffectPoof = 10
-};
+} API_DEPRECATED("Use +[NSCursor disappearingItemCursor] instead", macos(10.3,14.0));
-APPKIT_EXTERN void NSShowAnimationEffect(NSAnimationEffect animationEffect, NSPoint centerLocation, NSSize size, _Nullable id animationDelegate, _Nullable SEL didEndSelector, void * _Nullable contextInfo);
+APPKIT_EXTERN void NSShowAnimationEffect(NSAnimationEffect animationEffect, NSPoint centerLocation, NSSize size, _Nullable id animationDelegate, _Nullable SEL didEndSelector, void * _Nullable contextInfo) API_DEPRECATED("Use +[NSCursor disappearingItemCursor] instead", macos(10.3,14.0));
APPKIT_EXTERN void NSCountWindows(NSInteger *count) API_DEPRECATED("Use +[NSWindow windowNumbersWithOptions:] instead", macos(10.0,10.6));
APPKIT_EXTERN void NSWindowList(NSInteger size, NSInteger list[_Nonnull]) API_DEPRECATED("Use +[NSWindow windowNumbersWithOptions:] instead", macos(10.0,10.6));
@@ -264,4 +254,4 @@
APPKIT_EXTERN void NSCopyBits(NSInteger srcGState, NSRect srcRect, NSPoint destPoint) API_DEPRECATED("", macos(10.0,10.10));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphicsContext.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSGraphicsContext.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <Foundation/NSDictionary.h>
#import <CoreGraphics/CGContext.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString;
@@ -112,4 +112,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGridView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGridView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGridView.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGridView.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSGridView.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSLayoutAnchor.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSLayoutConstraint, NSGridCell, NSGridColumn, NSGridRow;
@@ -165,4 +165,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGroupTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGroupTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGroupTouchBarItem.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGroupTouchBarItem.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSGroupTouchBarItem.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSUserInterfaceLayout.h>
#import <AppKit/NSUserInterfaceCompression.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
API_AVAILABLE(macos(10.12.2), ios(13.0))
@interface NSGroupTouchBarItem : NSTouchBarItem
@@ -80,4 +80,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHapticFeedback.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHapticFeedback.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHapticFeedback.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHapticFeedback.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSHapticFeedback.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSObject.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSInteger, NSHapticFeedbackPattern) {
@@ -39,4 +39,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHelpManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHelpManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHelpManager.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSHelpManager.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSHelpManager.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAttributedString, NSWindow;
@@ -68,4 +68,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSImage.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -22,7 +22,7 @@
#define NSIMAGE_UNAVAILABLE_MACCATALYST TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor, NSImageRep, NSGraphicsContext, NSURL, NSImageSymbolConfiguration;
@@ -148,10 +148,6 @@
@property (getter=isValid, readonly) BOOL valid;
-- (void)lockFocus API_DEPRECATED("This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.", macos(10.0, API_TO_BE_DEPRECATED));
-- (void)lockFocusFlipped:(BOOL)flipped API_DEPRECATED("This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.", macos(10.6, API_TO_BE_DEPRECATED));
-- (void)unlockFocus API_DEPRECATED("This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.", macos(10.0, API_TO_BE_DEPRECATED));
-
@property (nullable, weak) id<NSImageDelegate> delegate;
@property (class, readonly, copy) NSArray<NSString *> *imageTypes API_AVAILABLE(macos(10.5));
@@ -159,8 +155,6 @@
+ (BOOL)canInitWithPasteboard:(NSPasteboard *)pasteboard;
-- (void)cancelIncrementalLoad;
-
@property NSImageCacheMode cacheMode;
/* The alignmentRect of an image is metadata that a client may use to help determine layout. The bottom of the rect gives the baseline of the image. The other edges give similar information in other directions.
@@ -237,6 +231,12 @@
@property (readonly, copy) NSImageSymbolConfiguration *symbolConfiguration API_AVAILABLE(macos(12.0));
+/// Creates and returns a new image with the specified locale. If the receiver contains locale-sensitive representations, the returned image will prefer to draw using representations appropriate for the specified locale. If locale is `nil`, the returned image uses the default behavior of choosing representations appropriate for the system’s currently-configured locale.
+- (NSImage *)imageWithLocale:(nullable NSLocale *)locale NS_SWIFT_NAME(withLocale(_:)) API_AVAILABLE(macos(14.0));
+
+/// The image’s preferred locale for resolving representations, if one has been specified using `-imageWithLocale:`. Otherwise, `nil`.
+@property (readonly, nullable, copy) NSLocale *locale API_AVAILABLE(macos(14.0));
+
@end
#if !NSIMAGE_UNAVAILABLE_MACCATALYST
@@ -253,10 +253,10 @@
- (nullable NSImage *)imageDidNotDraw:(NSImage *)sender inRect:(NSRect)rect NS_SWIFT_NONISOLATED;
-- (void)image:(NSImage *)image willLoadRepresentation:(NSImageRep *)rep;
-- (void)image:(NSImage *)image didLoadRepresentationHeader:(NSImageRep *)rep;
-- (void)image:(NSImage *)image didLoadPartOfRepresentation:(NSImageRep *)rep withValidRows:(NSInteger)rows;
-- (void)image:(NSImage *)image didLoadRepresentation:(NSImageRep *)rep withStatus:(NSImageLoadStatus)status;
+- (void)image:(NSImage *)image willLoadRepresentation:(NSImageRep *)rep API_DEPRECATED("This method is no longer called on 10.4 or later.", macos(10.0, 10.4));
+- (void)image:(NSImage *)image didLoadRepresentationHeader:(NSImageRep *)rep API_DEPRECATED("This method is no longer called on 10.4 or later.", macos(10.0, 10.4));
+- (void)image:(NSImage *)image didLoadPartOfRepresentation:(NSImageRep *)rep withValidRows:(NSInteger)rows API_DEPRECATED("This method is no longer called on 10.4 or later.", macos(10.0, 10.4));
+- (void)image:(NSImage *)image didLoadRepresentation:(NSImageRep *)rep withStatus:(NSImageLoadStatus)status API_DEPRECATED("This method is no longer called on 10.4 or later.", macos(10.0, 10.4));
@end
@interface NSBundle(NSBundleImageExtension)
@@ -268,49 +268,54 @@
- (nullable NSURL *)URLForImageResource:(NSImageName)name API_AVAILABLE(macos(10.6)); /* May return nil if no file found */
@end
-#pragma mark - Deprecated declarations
+#pragma mark - Deprecated Declarations
-@interface NSImage ()
+@interface NSImage (Deprecated)
-- (null_unspecified NSImageRep *)bestRepresentationForDevice:(null_unspecified NSDictionary *)deviceDescription API_DEPRECATED("Use -[NSImage bestRepresentationForRect:context:hints:] instead. Any deviceDescription dictionary is also a valid hints dictionary.", macos(10.0,10.6));
-
/* These return union of all the types registered with NSImageRep.
*/
-+ (NSArray<NSString *> *)imageUnfilteredFileTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0,10.10));
-+ (NSArray<NSPasteboardType> *)imageUnfilteredPasteboardTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0,10.10));
-+ (NSArray<NSString *> *)imageFileTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0,10.10));
-+ (NSArray<NSPasteboardType> *)imagePasteboardTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0,10.10));
++ (NSArray<NSString *> *)imageUnfilteredFileTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0, 10.10));
++ (NSArray<NSPasteboardType> *)imageUnfilteredPasteboardTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0, 10.10));
++ (NSArray<NSString *> *)imageFileTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0, 10.10));
++ (NSArray<NSPasteboardType> *)imagePasteboardTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0, 10.10));
#if TARGET_OS_OSX
- (instancetype)initWithIconRef:(IconRef)iconRef API_DEPRECATED("Use -[NSWorkspace iconForFile:], -[NSWorkspace iconForFiles:], -[NSWorkspace iconForFileType:], or +[NSImage imageNamed:] instead.", macos(10.5, 11.0));
#endif // TARGET_OS_OSX
-- (void)setFlipped:(BOOL)flag API_DEPRECATED("The concept of flippedness for NSImage is deprecated. Please see the AppKit 10.6 release notes for a discussion of why and for how to replace existing usage.", macos(10.0,10.6));
-- (BOOL)isFlipped API_DEPRECATED("The concept of flippedness for NSImage is deprecated. Please see the AppKit 10.6 release notes for a discussion of why and for how to replace existing usage.", macos(10.0,10.6));
+- (null_unspecified NSImageRep *)bestRepresentationForDevice:(null_unspecified NSDictionary *)deviceDescription API_DEPRECATED("Use -[NSImage bestRepresentationForRect:context:hints:] instead. Any deviceDescription dictionary is also a valid hints dictionary.", macos(10.0, 10.6));
+- (void)lockFocus API_DEPRECATED("This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.", macos(10.0, API_TO_BE_DEPRECATED));
+- (void)lockFocusFlipped:(BOOL)flipped API_DEPRECATED("This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.", macos(10.6, API_TO_BE_DEPRECATED));
+- (void)unlockFocus API_DEPRECATED("This method is incompatible with resolution-independent drawing and should not be used. Instead, use +[NSImage imageWithSize:flipped:drawingHandler:] to create a block-based image describing the desired image drawing, or use +[NSGraphicsContext graphicsContextWithBitmapImageRep:] to manipulate specific bitmap image representations.", macos(10.0, API_TO_BE_DEPRECATED));
+
+- (void)setFlipped:(BOOL)flag API_DEPRECATED("The concept of flippedness for NSImage is deprecated. Please see the AppKit 10.6 release notes for a discussion of why and for how to replace existing usage.", macos(10.0, 10.6));
+- (BOOL)isFlipped API_DEPRECATED("The concept of flippedness for NSImage is deprecated. Please see the AppKit 10.6 release notes for a discussion of why and for how to replace existing usage.", macos(10.0, 10.6));
+- (void)setScalesWhenResized:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (BOOL)scalesWhenResized API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (void)setDataRetained:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (BOOL)isDataRetained API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (void)setCachedSeparately:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (BOOL)isCachedSeparately API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (void)setCacheDepthMatchesImageDepth:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+- (BOOL)cacheDepthMatchesImageDepth API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0, 10.6));
+
// These methods have surprising semantics. Prefer to use the 'draw' methods (and note the new draw method taking respectContextIsFlipped as a parameter). Please see the AppKit 10.6 release notes for exactly what's going on.
-- (void)dissolveToPoint:(NSPoint)point fraction:(CGFloat)fraction API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0,10.6));
-- (void)dissolveToPoint:(NSPoint)point fromRect:(NSRect)rect fraction:(CGFloat)fraction API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0,10.6));
-- (void)compositeToPoint:(NSPoint)point operation:(NSCompositingOperation)op API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0,10.6));
-- (void)compositeToPoint:(NSPoint)point fromRect:(NSRect)rect operation:(NSCompositingOperation)op API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0,10.6));
-- (void)compositeToPoint:(NSPoint)point operation:(NSCompositingOperation)op fraction:(CGFloat)delta API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0,10.6));
-- (void)compositeToPoint:(NSPoint)point fromRect:(NSRect)rect operation:(NSCompositingOperation)op fraction:(CGFloat)delta API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0,10.6));
+- (void)dissolveToPoint:(NSPoint)point fraction:(CGFloat)fraction API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0, 10.6));
+- (void)dissolveToPoint:(NSPoint)point fromRect:(NSRect)rect fraction:(CGFloat)fraction API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0, 10.6));
+- (void)compositeToPoint:(NSPoint)point operation:(NSCompositingOperation)operation API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0, 10.6));
+- (void)compositeToPoint:(NSPoint)point fromRect:(NSRect)rect operation:(NSCompositingOperation)operation API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0, 10.6));
+- (void)compositeToPoint:(NSPoint)point operation:(NSCompositingOperation)operation fraction:(CGFloat)fraction API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0, 10.6));
+- (void)compositeToPoint:(NSPoint)point fromRect:(NSRect)rect operation:(NSCompositingOperation)operation fraction:(CGFloat)fraction API_DEPRECATED("Use -drawAtPoint:... or -drawInRect:... methods instead", macos(10.0, 10.6));
// This method doesn't do what people expect. See AppKit 10.6 release notes. Briefly, you can replace invocation of this method with code that locks focus on the image and then draws the rep in the image.
-- (void)lockFocusOnRepresentation:(null_unspecified NSImageRep *)imageRepresentation API_DEPRECATED("Create an image using +[NSImage imageWithSize:flipped:drawingHandler:], and begin your custom drawing with -[NSImageRep drawInRect:] instead.", macos(10.0,10.6));
+- (void)lockFocusOnRepresentation:(null_unspecified NSImageRep *)imageRepresentation API_DEPRECATED("Create an image using +[NSImage imageWithSize:flipped:drawingHandler:], and begin your custom drawing with -[NSImageRep drawInRect:] instead.", macos(10.0, 10.6));
-- (void)setScalesWhenResized:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (BOOL)scalesWhenResized API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (void)setDataRetained:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (BOOL)isDataRetained API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (void)setCachedSeparately:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (BOOL)isCachedSeparately API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (void)setCacheDepthMatchesImageDepth:(BOOL)flag API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
-- (BOOL)cacheDepthMatchesImageDepth API_DEPRECATED("You should be able to remove use of this method without any replacement. See 10.6 AppKit release notes for details.", macos(10.0,10.6));
+- (void)cancelIncrementalLoad API_DEPRECATED("This method does not perform any operation on 10.4 or later.", macos(10.0, 10.4));
@end
-#pragma mark - Standard images
+#pragma mark - Standard Images
/* Standard images.
@@ -430,7 +435,7 @@
*/
APPKIT_EXTERN NSImageName const NSImageNameApplicationIcon API_AVAILABLE(macos(10.6));
-#pragma mark - NSTouchBar images
+#pragma mark - NSTouchBar Images
/* These images are appropriate for use only in NSTouchBar.
*/
@@ -594,4 +599,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageCell.h 2023-03-09 01:14:34
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageCell.h 2023-05-31 09:13:33
@@ -1,7 +1,7 @@
/*
NSImageCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageRep.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageRep.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSImageRep.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -17,7 +17,7 @@
#import <AppKit/NSUserInterfaceLayout.h>
#import <ApplicationServices/ApplicationServices.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPasteboard, NSGraphicsContext, NSURL;
@@ -67,8 +67,8 @@
+ (void)registerImageRepClass:(Class)imageRepClass;
+ (void)unregisterImageRepClass:(Class)imageRepClass;
@property (class, readonly, copy) NSArray<Class> *registeredImageRepClasses;
-+ (nullable Class)imageRepClassForFileType:(NSString *)type API_DEPRECATED("Use +imageRepClassForType: instead", macos(10.0,10.10));
-+ (nullable Class)imageRepClassForPasteboardType:(NSPasteboardType)type API_DEPRECATED("Use +imageRepClassForType: instead", macos(10.0,10.10));
++ (nullable Class)imageRepClassForFileType:(NSString *)type API_DEPRECATED("Use +imageRepClassForType: instead", macos(10.0, 10.10));
++ (nullable Class)imageRepClassForPasteboardType:(NSPasteboardType)type API_DEPRECATED("Use +imageRepClassForType: instead", macos(10.0, 10.10));
+ (nullable Class)imageRepClassForType:(NSString *)type API_AVAILABLE(macos(10.5));
+ (nullable Class)imageRepClassForData:(NSData *)data;
@@ -78,13 +78,13 @@
/* Implemented by subclassers to indicate what data types they can deal with.
*/
-+ (NSArray<NSString *> *)imageUnfilteredFileTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0,10.10));
-+ (NSArray<NSPasteboardType> *)imageUnfilteredPasteboardTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0,10.10));
++ (NSArray<NSString *> *)imageUnfilteredFileTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0, 10.10));
++ (NSArray<NSPasteboardType> *)imageUnfilteredPasteboardTypes API_DEPRECATED("Use +imageUnfilteredTypes instead", macos(10.0, 10.10));
/* These expand the unfiltered lists returned by imageUnfilteredFileTypes and imageUnfilteredPasteboardTypes.
*/
-+ (NSArray<NSString *> *)imageFileTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0,10.10));
-+ (NSArray<NSPasteboardType> *)imagePasteboardTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0,10.10));
++ (NSArray<NSString *> *)imageFileTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0, 10.10));
++ (NSArray<NSPasteboardType> *)imagePasteboardTypes API_DEPRECATED("Use +imageTypes instead", macos(10.0, 10.10));
/* Implemented by subclassers to indicate what UTI-identified data types they can deal with.
@@ -128,5 +128,5 @@
APPKIT_EXTERN NSNotificationName NSImageRepRegistryDidChangeNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImageView.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSImageView.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,12 +9,27 @@
#import <AppKit/NSImageCell.h>
#import <AppKit/NSMenu.h>
#import <AppKit/AppKitDefines.h>
+#import <Symbols/NSSymbolEffect.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImageSymbolConfiguration;
+/*!
+ Values that can be used to enable or constrain display of High Dynamic Range (HDR) content in NSImageViews. Displaying HDR content in an NSImageView requires that the assigned NSImage has HDR content in the ITU-R 2100 color space and also that the output device has Extended Dynamic Range (EDR) capabilities.
+ */
+typedef NS_ENUM(NSInteger, NSImageDynamicRange) {
+ NSImageDynamicRangeUnspecified = -1,
+
+ /// Restrict the image content dynamic range to the standard range regardless of the actual range of the image content.
+ NSImageDynamicRangeStandard = 0,
+ /// Allow constrained HDR image content. Useful when mixing HDR and SDR content.
+ NSImageDynamicRangeConstrainedHigh = 1,
+ /// Allow image content to use extended dynamic range if it has high dynamic range content.
+ NSImageDynamicRangeHigh = 2
+} NS_SWIFT_NAME(NSImage.DynamicRange) API_AVAILABLE(macos(14.0));
+
@interface NSImageView : NSControl <NSAccessibilityImage, NSMenuItemValidation>
/*!
@@ -46,9 +61,49 @@
@property BOOL allowsCutCopyPaste;
+/// Default preferred image dynamic range. Defaults to `NSImageDynamicRangeHigh` on macOS 14 and higher, `NSImageDynamicRangeStandard` otherwise. Set to another value to change the default for all subsequently created `NSImageView`s in your app.
+@property (class) NSImageDynamicRange defaultPreferredImageDynamicRange API_AVAILABLE(macos(14.0));
+
+/// Preferred dynamic range when displaying an image in the receiving image view.
+@property NSImageDynamicRange preferredImageDynamicRange API_AVAILABLE(macos(14.0));
+
+/// Resolved dynamic range based on fully resolved image content. Note: this will return `NSImageDynamicRangeUnspecified` if the image view has not or can not resolve the content (either because it has no resolvable image content or has not resolved because the image view hasn't displayed.)
+@property (readonly) NSImageDynamicRange imageDynamicRange API_AVAILABLE(macos(14.0));
+
@end
+@interface NSImageView (NSSymbolEffect)
+/// Adds a symbol effect to the image view with default options and animation.
+- (void)addSymbolEffect:(NSSymbolEffect *)symbolEffect API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Adds a symbol effect to the image view with specified options and default animation.
+- (void)addSymbolEffect:(NSSymbolEffect *)symbolEffect options:(NSSymbolEffectOptions *)options API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Adds a symbol effect to the image view with specified options and animation.
+- (void)addSymbolEffect:(NSSymbolEffect *)symbolEffect options:(NSSymbolEffectOptions *)options animated:(BOOL)animated API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+
+/// Removes from the image view the symbol effect matching the type of effect passed in, with default options and animation.
+- (void)removeSymbolEffectOfType:(NSSymbolEffect *)symbolEffect API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Removes from the image view the symbol effect matching the type of effect passed in, with specified options and default animation.
+- (void)removeSymbolEffectOfType:(NSSymbolEffect *)symbolEffect options:(NSSymbolEffectOptions *)options API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Removes from the image view the symbol effect matching the type of effect passed in, with specified options and animation.
+- (void)removeSymbolEffectOfType:(NSSymbolEffect *)symbolEffect options:(NSSymbolEffectOptions *)options animated:(BOOL)animated API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+
+/// Removes all symbol effects from the image view with default options and animation.
+- (void)removeAllSymbolEffects API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Removes all symbol effects from the image view with specified options and default animation.
+- (void)removeAllSymbolEffectsWithOptions:(NSSymbolEffectOptions *)options API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Removes all symbol effects from the image view with specified options and animation.
+- (void)removeAllSymbolEffectsWithOptions:(NSSymbolEffectOptions *)options animated:(BOOL)animated API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+
+/// Sets the symbol image on the image view with a symbol content transition and default options.
+/// Passing in a non-symbol image will result in undefined behavior.
+- (void)setSymbolImage:(NSImage *)symbolImage withContentTransition:(NSSymbolContentTransition *)transition API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+/// Sets the symbol image on the image view with a symbol content transition and specified options.
+/// Passing in a non-symbol image will result in undefined behavior.
+- (void)setSymbolImage:(NSImage *)symbolImage withContentTransition:(NSSymbolContentTransition *)transition options:(NSSymbolEffectOptions *)options API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+
+@end
+
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputManager.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputManager.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSInputManager.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <Foundation/NSRange.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSArray, NSAttributedString, NSEvent, NSInputServer, NSImage;
@@ -100,4 +100,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputServer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputServer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputServer.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInputServer.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSInputServer.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
/* These methods must be implemented by the delegate.
*/
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@protocol NSInputServiceProvider
@@ -70,4 +70,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInterfaceStyle.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInterfaceStyle.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInterfaceStyle.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSInterfaceStyle.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSInterfaceStyle.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h 2023-03-09 19:08:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSItemProvider.h
Application Kit
- Copyright (c) 2014-2021, Apple Inc.
+ Copyright (c) 2014-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSItemProvider.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
// Item information support for Services-with-UI.
@@ -33,4 +33,4 @@
APPKIT_EXTERN NSString * const NSTypeIdentifierTransitInformationText NS_AVAILABLE(10_10, 8_0); // NSTextCheckingTypeTransitInformation, com.apple.structured-text.transit-information
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSKeyValueBinding.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSKeyValueBinding.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <Foundation/NSDictionary.h>
#import <CoreData/NSManagedObjectContext.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSError, NSAttributeDescription;
@@ -240,5 +240,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutAnchor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutAnchor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutAnchor.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutAnchor.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSLayoutAnchor.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSArray.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@@ -117,4 +117,4 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSLayoutConstraint.h
Application Kit
- Copyright (c) 2009-2021, Apple Inc.
+ Copyright (c) 2009-2023, Apple Inc.
All rights reserved.
*/
@@ -16,7 +16,7 @@
#import <Foundation/NSDictionary.h>
#import <AppKit/NSLayoutAnchor.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
#if !TARGET_OS_IPHONE
@@ -410,4 +410,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutGuide.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutGuide.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutGuide.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutGuide.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSLayoutGuide.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -16,7 +16,7 @@
@class NSLayoutDimension;
@class NSLayoutConstraint;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
/* NSLayoutGuides will not show up in the view hierarchy, but may be used as items in an NSLayoutConstraint and represent a rectangle in the layout engine.
@@ -72,4 +72,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutManager.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutManager.h 2023-05-31 09:13:43
@@ -2,7 +2,7 @@
/*
NSLayoutManager.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -23,7 +23,7 @@
@protocol NSLayoutManagerDelegate;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@@ -496,7 +496,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSLayoutManager.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicator.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicator.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicator.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicator.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSLevelIndicator.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicatorCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicatorCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicatorCell.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLevelIndicatorCell.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSLevelIndicatorCell.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSSliderCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSUInteger, NSLevelIndicatorStyle) {
@@ -50,5 +50,5 @@
static const NSLevelIndicatorStyle NSRatingLevelIndicatorStyle API_DEPRECATED_WITH_REPLACEMENT("NSLevelIndicatorStyleRating", macos(10.0,10.14)) = NSLevelIndicatorStyleRating;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMagnificationGestureRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMagnificationGestureRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMagnificationGestureRecognizer.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMagnificationGestureRecognizer.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSMagnificationGestureRecognizer.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSGestureRecognizer.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10))
@@ -20,4 +20,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMatrix.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMatrix.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMatrix.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMatrix.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSMatrix.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSUserInterfaceValidation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor;
@@ -129,5 +129,5 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMediaLibraryBrowserController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMediaLibraryBrowserController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMediaLibraryBrowserController.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMediaLibraryBrowserController.h 2023-05-31 09:13:45
@@ -1,55 +1,40 @@
/*
NSMediaLibraryBrowserController.h
Application Kit
- Copyright (c) 2012-2021, Apple Inc.
+ Copyright (c) 2012-2023, Apple Inc.
All rights reserved.
*/
-/* NSMediaLibraryBrowserController
-
- An instance of an NSMediaLibraryBrowserController configures and displays a Media Library Browser Panel. A User can drag and drop media files from the Media Library Browser into views in their application.
-*/
-
-/*
- typedef NSMediaLibrary:
-
- NSMediaLibrary enums are masks used to configure a Media Library Browser to display specific types of media. Combined masks are not yet supported. In other words, only one non zero mask value is supported at a time. If masks are combined, the lowest mask value will be used.
-*/
-
#import <Foundation/NSObject.h>
#import <Foundation/NSGeometry.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+/// @abstract This type is used to configure a media browser for individual media types.
+/// @warning Though this type is declared as a set of mixable options -- and was originally intended to become that eventually -- you should treat it as an enum.
+/// @warning In other words, this type should be declared with NS_ENUM rather than NS_OPTIONS, but the latter has historical inertia not worth struggling against.
typedef NS_OPTIONS(NSUInteger, NSMediaLibrary) {
NSMediaLibraryAudio = 1UL << 0,
NSMediaLibraryImage = 1UL << 1,
NSMediaLibraryMovie = 1UL << 2
} API_AVAILABLE(macos(10.9));
-/*
- class:
-
- NSMediaLibraryBrowserController configures and displays a Media Library Browser Panel.
-
- discussion:
-
- NSMediaLibraryBrowserController is not an NSPanel! It has NSPanel like methods to remotely control the Media Library Browser. Clients have no direct programmatic access to the panel displaying the Media Library Browser.
-*/
-
+/// @abstract This class configures and displays a media browser panel.
+/// @discussion This class provides no direct access to the panel, and its meaningful contents aren't in the calling process.
API_AVAILABLE(macos(10.9))
@interface NSMediaLibraryBrowserController : NSObject
+@property (class, readonly, strong) NSMediaLibraryBrowserController *sharedMediaLibraryBrowserController;
+
@property (getter=isVisible) BOOL visible;
@property NSRect frame;
@property NSMediaLibrary mediaLibraries;
-@property (class, readonly, strong) NSMediaLibraryBrowserController *sharedMediaLibraryBrowserController;
- (IBAction)togglePanel:(nullable id)sender;
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSMenu.h
Application Kit
- Copyright (c) 1996-2021, Apple Inc.
+ Copyright (c) 1996-2023, Apple Inc.
All rights reserved.
*/
@@ -11,9 +11,44 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSMenuItem.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+/// When set as a value on `NSMenu.presentationStyle`, determines how
+/// the given menu is presented.
+typedef NS_ENUM(NSInteger, NSMenuPresentationStyle) {
+ /// The default presentation style. Typically means the menu will
+ /// be presented as either a popup or pulldown menu, based on the
+ /// context.
+ NSMenuPresentationStyleRegular = 0,
+
+ /// The menu marked as palette is to be displayed in place of the
+ /// menu item presenting it, with its items aligned horizontally.
+ NSMenuPresentationStylePalette = 1
+} API_AVAILABLE(macos(14.0)) NS_SWIFT_NAME(NSMenu.PresentationStyle);
+
+/// When set as a value on `NSMenu.selectionMode`, determines how the
+/// menu manages selection states of the menu items that belong to
+/// the same selection group.
+///
+/// This does not apply to menu items that have distinct
+/// target/action values.
+typedef NS_ENUM(NSInteger, NSMenuSelectionMode) {
+ /// The menu will determine the appropriate selection mode based
+ /// on the context and its contents.
+ NSMenuSelectionModeAutomatic = 0,
+
+ /// The user will be allowed to select at most one menu item in
+ /// the same selection group at a time. A change in selection
+ /// will deselect any previously selected item.
+ NSMenuSelectionModeSelectOne = 1,
+
+ /// The user can select multiple items in the menu. A change in
+ /// selection will not automatically deselect any previously
+ /// selected item in the same selection group.
+ NSMenuSelectionModeSelectAny = 2,
+} API_AVAILABLE(macos(14.0)) NS_SWIFT_NAME(NSMenu.SelectionMode);
+
@class NSEvent, NSView, NSFont;
@class NSMenu;
@protocol NSMenuDelegate;
@@ -157,6 +192,56 @@
@end
+@interface NSMenu (NSPaletteMenus)
+
+/// Creates a palette menu displaying user-selectable color
+/// tags using the provided array of colors and optional titles.
+/// @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
+/// using the provided template image, tinted using the specified
+/// array of colors.
+///
+/// Optionally allows observing changes to the selection state in
+/// the compact menu. The block is invoked after the selection
+/// has been updated. Currently selected items can be retrieved
+/// from the `selectedItems` property.
+///
+/// @return An autoconfigured palette menu.
++ (instancetype)paletteMenuWithColors:(NSArray<NSColor *> *)colors
+ titles:(NSArray<NSString *> *)itemTitles
+ templateImage:(NSImage *)image
+ selectionHandler:(nullable void (^)(NSMenu *))onSelectionChange
+API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
+
+/// The presentation style of the menu.
+///
+/// @note This property is not respected if the menu is the main
+/// menu of the app.
+@property NSMenuPresentationStyle presentationStyle API_AVAILABLE(macos(14.0));
+
+/// The selection mode of the menu.
+///
+/// Note the selection mode only has effect on menu items that
+/// belong to the same selection group. A selection group consists
+/// of the items with the same target/action.
+@property NSMenuSelectionMode selectionMode API_AVAILABLE(macos(14.0));
+
+/// The menu items that are selected.
+///
+/// An item is selected when its state is `NSControl.StateValue.on`.
+///
+/// @note This property is settable. Setting `selectedItems` will
+/// select any items that are contained in the provided array, and
+/// deselect any previously selected items that are not in the array.
+@property (copy) NSArray<NSMenuItem *> *selectedItems API_AVAILABLE(macos(14.0));
+
+@end
+
@interface NSMenu (NSSubmenuAction)
- (void)submenuAction:(nullable id)sender;
@end
@@ -254,4 +339,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSMenuItem.h
Application Kit
- Copyright (c) 1996-2021, Apple Inc.
+ Copyright (c) 1996-2023, Apple Inc.
All rights reserved.
*/
@@ -13,18 +13,21 @@
#import <AppKit/NSView.h>
#import <AppKit/NSCell.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-@class NSMenu;
-@class NSImage, NSAttributedString, NSView;
+@class NSMenu, NSMenuItemBadge, NSImage, NSAttributedString, NSView;
+#pragma mark - NSMenuItem
+
@interface NSMenuItem : NSObject <NSCopying, NSCoding, NSValidatedUserInterfaceItem, NSUserInterfaceItemIdentification, NSAccessibilityElement, NSAccessibility>
@property (class) BOOL usesUserKeyEquivalents;
+ (NSMenuItem *)separatorItem;
++ (instancetype)sectionHeaderWithTitle:(NSString *)title API_AVAILABLE(macos(14.0));
+
- (instancetype)initWithTitle:(NSString *)string action:(nullable SEL)selector keyEquivalent:(NSString *)charCode NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
@@ -44,6 +47,7 @@
@property (nullable, copy) NSAttributedString *attributedTitle;
@property (getter=isSeparatorItem, readonly) BOOL separatorItem;
+@property (getter=isSectionHeader, readonly) BOOL sectionHeader API_AVAILABLE(macos(14.0));
@property (copy) NSString *keyEquivalent;
@property NSEventModifierFlags keyEquivalentModifierMask;
@@ -95,11 +99,18 @@
@property (getter=isHidden) BOOL hidden API_AVAILABLE(macos(10.5));
@property (getter=isHiddenOrHasHiddenAncestor, readonly) BOOL hiddenOrHasHiddenAncestor API_AVAILABLE(macos(10.5));
-
@property (nullable, copy) NSString *toolTip;
+/// A badge used to provide additional quantitative information specific to
+/// the menu item, such as the number of available updates.
+///
+/// @note The default value of this property is @c nil.
+@property (nullable, copy) NSMenuItemBadge *badge API_AVAILABLE(macos(14.0));
+
@end
+#pragma mark - NSViewEnclosingMenuItem
+
@interface NSView (NSViewEnclosingMenuItem)
/* Returns the menu item containing the receiver or any of its superviews in the view hierarchy, or nil if the receiver's view hierarchy is not in a menu item. */
@property (nullable, readonly, strong) NSMenuItem *enclosingMenuItem API_AVAILABLE(macos(10.5));
@@ -108,9 +119,7 @@
APPKIT_EXTERN NSUserInterfaceItemIdentifier const NSMenuItemImportFromDeviceIdentifier API_AVAILABLE(macos(10.14)); // Continuity Camera menu item.
// The NSMenuItem protocol is deprecated. Use the NSMenuItem class in your code.
-#if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 2)
API_DEPRECATED("", macos(10.0,10.6))
-#endif
@protocol NSMenuItem;
/* The following methods are deprecated. They have never done anything useful in Mac OS X. */
@@ -124,4 +133,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemBadge.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemBadge.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemBadge.h 1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemBadge.h 2023-05-31 09:13:45
@@ -0,0 +1,74 @@
+/*
+ NSMenuItemBadge.h
+ Application Kit
+ Copyright (c) 2023-2023, Apple Inc.
+ All rights reserved.
+*/
+
+#import <Foundation/NSObject.h>
+#import <AppKit/AppKitDefines.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+
+/// The badge type is used to specify one of the pre-defined or custom
+/// string portions of a menu item badge, ensuring appropriate localization
+/// and pluralization behaviors automatically when using a pre-defined type.
+typedef NS_ENUM(NSInteger, NSMenuItemBadgeType) {
+ /// The badge should have no string portion.
+ NSMenuItemBadgeTypeNone = 0,
+
+ /// The badge represents the number of available updates.
+ NSMenuItemBadgeTypeUpdates,
+
+ /// The badge represents the number of new items.
+ NSMenuItemBadgeTypeNewItems,
+
+ /// The badge represents the number of alerts.
+ NSMenuItemBadgeTypeAlerts
+} NS_SWIFT_NAME(NSMenuItemBadge.BadgeType) API_AVAILABLE(macos(14.0));
+
+/// A badge used to provide additional quantitative information specific
+/// to the menu item, such as the number of available updates.
+API_AVAILABLE(macos(14.0))
+@interface NSMenuItemBadge : NSObject <NSCopying>
+
+/// Creates a badge with an integer count and a label representing
+/// the number of available updates.
++ (instancetype)updatesWithCount:(NSInteger)itemCount NS_SWIFT_NAME(updates(count:));
+
+/// Creates a badge with an integer count and a label representing
+/// the number of new items.
++ (instancetype)newItemsWithCount:(NSInteger)itemCount NS_SWIFT_NAME(newItems(count:));
+
+/// Creates a badge with an integer count and a label representing
+/// the number of alerts.
++ (instancetype)alertsWithCount:(NSInteger)itemCount NS_SWIFT_NAME(alerts(count:));
+
+/// Initializes the badge with a count and a pre-defined badge type.
+- (instancetype)initWithCount:(NSInteger)itemCount type:(NSMenuItemBadgeType)type NS_SWIFT_UNAVAILABLE("Use updates(count:), newItems(count:), or alerts(count:) instead.");
+
+/// Initializes the badge with an integer count and an empty string.
+- (instancetype)initWithCount:(NSInteger)itemCount NS_SWIFT_NAME(init(count:));
+
+/// Initializes the badge with the provided custom string.
+- (instancetype)initWithString:(NSString *)string NS_SWIFT_NAME(init(string:));
+
+- (instancetype)init NS_UNAVAILABLE;
+
+/// The count of items the badge displays. If a custom string was used
+/// to create a badge, the value is 0.
+@property (readonly) NSInteger itemCount;
+
+/// The type of items the badge displays. If a custom string was used
+/// to create a badge, this value is @c NSMenuItemBadgeTypeNone.
+@property (readonly) NSMenuItemBadgeType type;
+
+/// The string representation of the badge as it would appear when the
+/// badge is displayed.
+@property (readonly, nullable) NSString *stringValue;
+
+@end
+
+API_UNAVAILABLE_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemCell.h 2023-03-09 01:14:33
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItemCell.h 2023-05-31 09:13:32
@@ -1,7 +1,7 @@
/*
NSMenuItemCell.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSMenuItem.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSMenuItemCell : NSButtonCell
@@ -47,4 +47,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuToolbarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuToolbarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuToolbarItem.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuToolbarItem.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSMenuToolbarItem.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
@class NSMenu;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
API_AVAILABLE(macos(10.15), ios(13.0))
@interface NSMenuToolbarItem : NSToolbarItem
@@ -29,4 +29,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMovie.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMovie.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMovie.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMovie.h 2023-05-31 09:13:43
@@ -1,14 +1,14 @@
/*
NSMovie.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class QTMovie;
@@ -23,4 +23,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNib.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNib.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNib.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNib.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSNib.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
NSNib serves as a wrapper around a single InterfaceBuilder nib. When an NSNib instance is created from a nib file, all of the data needed to instantiate the nib (the object graph as well as images and sounds that might be in the nib bundle) are read from the disk, however the nib is not instantiated until you call one of the instantiation methods.
@@ -16,7 +16,7 @@
#import <AppKit/AppKitDefines.h>
#import <Foundation/Foundation.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSNibName NS_SWIFT_BRIDGED_TYPEDEF;
@@ -57,4 +57,4 @@
APPKIT_EXTERN NSString * NSNibTopLevelObjects API_DEPRECATED("", macos(10.0,10.8));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibConnector.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibConnector.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibConnector.h 2023-03-09 01:14:34
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibConnector.h 2023-05-31 09:13:34
@@ -1,14 +1,14 @@
/*
NSNibConnector.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSObject.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSNibConnector : NSObject <NSCoding>
@@ -20,4 +20,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibControlConnector.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibControlConnector.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibControlConnector.h 2023-03-09 01:14:32
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibControlConnector.h 2023-05-31 09:13:31
@@ -1,7 +1,7 @@
/*
NSNibControlConnector.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibDeclarations.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibDeclarations.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibDeclarations.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibDeclarations.h 2023-05-31 09:13:38
@@ -1,7 +1,7 @@
/*
NSNibDeclarations.h
Application Kit
- Copyright (c) 1996-2021, Apple Inc.
+ Copyright (c) 1996-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSNibLoading.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSNib.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSDictionary;
@@ -35,4 +35,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibOutletConnector.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibOutletConnector.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibOutletConnector.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibOutletConnector.h 2023-05-31 09:13:38
@@ -1,7 +1,7 @@
/*
NSNibOutletConnector.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSObjectController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSObjectController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSObjectController.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSObjectController.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSObjectController.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSUserInterfaceValidation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPredicate, NSManagedObjectContext, NSFetchRequest, NSError;
@@ -61,6 +61,6 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSOpenGL.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <OpenGL/CGLTypes.h>
#import <OpenGL/gltypes.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
#ifndef GL_SILENCE_DEPRECATION
@@ -273,4 +273,4 @@
static const NSOpenGLContextParameter NSOpenGLCPSurfaceSurfaceVolatile API_DEPRECATED_WITH_REPLACEMENT("NSOpenGLContextParameterSurfaceSurfaceVolatile", macos(10.0,10.14)) = NSOpenGLContextParameterSurfaceSurfaceVolatile;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSOpenGLLayer.h
Application Kit
- Copyright (c) 2008-2021, Apple Inc.
+ Copyright (c) 2008-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/AppKitDefines.h>
#import <QuartzCore/CAOpenGLLayer.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
NS_OPENGL_CLASS_DEPRECATED("Please use CAMetalLayer instead.", 10.6, 10.14)
@@ -47,4 +47,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLView.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLView.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSOpenGLView.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSOpenGL.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSOpenGLContext, NSOpenGLPixelFormat;
@@ -58,4 +58,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSOpenPanel.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSSavePanel.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString;
@@ -82,4 +82,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOutlineView.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSOutlineView.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/AppKitDefines.h>
#import <CoreFoundation/CFDictionary.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSButtonCell;
@@ -368,6 +368,16 @@
*/
- (BOOL)outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(id)item NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.6));
+/* Optional - Column Visibility User Control. Return YES for any column whose visibility is meant to be user-controllable. Implementing this method enables outline view to provide a menu or equivalent UI that allows users to hide or show columns. Any column that is meant to be user-controllable in this way should have a non-empty `.title` property.
+ Note: setting the `.menu` property on outlineView's `.headerView` will take precedence over this built-in mechanism.
+ */
+- (BOOL)outlineView:(NSOutlineView *)outlineView userCanChangeVisibilityOfTableColumn:(NSTableColumn *)column NS_SWIFT_NAME(outlineView(_:userCanChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
+
+/* Optional - Column Visibility User Control. Called when the user alters the visibility of one or more columns via the `tableView:userCanChangeVisibilityOfTableColumn:` UI affordance.
+ */
+- (void)outlineView:(NSOutlineView *)outlineView userDidChangeVisibilityOfTableColumns:(NSArray <NSTableColumn *> *)columns NS_SWIFT_NAME(outlineView(_:userDidChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
+
+
/* Notifications - see comments below for more information about the @"NSObject" parameter in the userInfo dictionary.
*/
- (void)outlineViewSelectionDidChange:(NSNotification *)notification NS_SWIFT_UI_ACTOR;
@@ -410,5 +420,5 @@
APPKIT_EXTERN NSNotificationName NSOutlineViewItemDidCollapseNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFImageRep.h 2023-03-09 01:14:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFImageRep.h 2023-05-31 09:13:37
@@ -1,14 +1,14 @@
/*
NSPDFImageRep.h
Application Kit
- Copyright (c) 1999-2021, Apple Inc.
+ Copyright (c) 1999-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSImageRep.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSPDFImageRep : NSImageRep
@@ -24,5 +24,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFInfo.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFInfo.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFInfo.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFInfo.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSPDFInfo.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSPrintInfo.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSURL;
@@ -30,4 +30,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h 2023-05-31 09:13:42
@@ -1,14 +1,14 @@
/*
NSPDFPanel.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSObject.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMutableArray, NSString;
@@ -45,4 +45,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPICTImageRep.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPICTImageRep.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPICTImageRep.h 2023-03-09 01:14:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPICTImageRep.h 2023-05-31 09:13:37
@@ -1,14 +1,14 @@
/*
NSPICTImageRep.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSImageRep.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSPICTImageRep : NSImageRep
@@ -22,4 +22,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageController.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSPageController.h
Application Kit
- Copyright (c) 2011-2021, Apple Inc.
+ Copyright (c) 2011-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSViewController.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMutableDictionary, NSView;
@@ -106,4 +106,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSPageLayout.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,11 +9,17 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPrintInfo, NSView, NSViewController, NSWindow, NSWindowController;
+API_AVAILABLE(macos(14.0))
+typedef NS_ENUM(NSInteger, NSPageLayoutResult) {
+ NSPageLayoutResultCancelled = 0,
+ NSPageLayoutResultChanged,
+} NS_SWIFT_NAME(NSPageLayout.Result);
+
NS_SWIFT_UI_ACTOR
@interface NSPageLayout : NSObject
@@ -28,19 +34,24 @@
- (void)removeAccessoryController:(NSViewController *)accessoryController API_AVAILABLE(macos(10.5));
@property (readonly, copy) NSArray<__kindof NSViewController *> *accessoryControllers API_AVAILABLE(macos(10.5));
+/* Displays a page layout panel as a sheet on a window.
+ This method returns immediately.
+ When the page layout panel is dismissed, calls the completion handler with NSPageLayoutResult as the argument.
+*/
+- (void)beginSheetUsingPrintInfo:(NSPrintInfo *)printInfo on:(NSWindow *)parentWindow completionHandler:(void (^_Nullable)(NSPageLayoutResult result))handler API_AVAILABLE(macos(14.0));
/* Present a page setup panel to the user, document-modally. When the user has dismissed it, send the message selected by didEndSelector to the delegate, with the contextInfo as the last argument. The method selected by didEndSelector must have the same signature as:
- (void)pageLayoutDidEnd:(NSPageLayout *)pageLayout returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
*/
-- (void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo modalForWindow:(NSWindow *)docWindow delegate:(nullable id)delegate didEndSelector:(nullable SEL)didEndSelector contextInfo:(nullable void *)contextInfo;
+- (void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo modalForWindow:(NSWindow *)docWindow delegate:(nullable id)delegate didEndSelector:(nullable SEL)didEndSelector contextInfo:(nullable void *)contextInfo API_DEPRECATED_WITH_REPLACEMENT("This method will be deprecated in a future release. Use -[NSPageLayout beginSheetUsingPrintInfo:on:completionHandler:] instead.", macos(10.0, API_TO_BE_DEPRECATED));
/* Present a page setup panel to the user, application-modally, and return either NSOKButton or NSCancelButton. The default implementation of -runModal just invokes [self runModalWithPrintInfo:[NSPrintInfo sharedPrintInfo]].
*/
- (NSInteger)runModalWithPrintInfo:(NSPrintInfo *)printInfo;
- (NSInteger)runModal;
-/* A simple accessor. Your -beginSheetWithPrintInfo:... delegate can use this so it doesn't have to keep a pointer to the NSPrintInfo elsewhere while waiting for the user to dismiss the print panel.
+/* Returns the printInfo passed to `beginSheetUsingPrintInfo:on:completionHandler:`.
*/
@property (nullable, readonly, strong) NSPrintInfo *printInfo;
@@ -67,4 +78,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanGestureRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanGestureRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanGestureRecognizer.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanGestureRecognizer.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSPanGestureRecognizer.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSGestureRecognizer.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10))
@@ -33,4 +33,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanel.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPanel.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSPanel.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSParagraphStyle.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
#if !__has_include(<UIFoundation/NSParagraphStyle.h>)
/*
NSParagraphStyle.h
- Copyright (c) 1994-2021, Apple Inc. All rights reserved.
+ Copyright (c) 1994-2023, Apple Inc. All rights reserved.
NSParagraphStyle and NSMutableParagraphStyle hold paragraph style information
NSTextTab holds information about a single tab stop
@@ -13,7 +13,7 @@
@class NSTextBlock;
@class NSTextList;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@@ -162,7 +162,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSParagraphStyle.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSPasteboard.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
#import <Foundation/NSURL.h>
#import <CoreFoundation/CFBase.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSData, NSFileWrapper, NSMutableDictionary, NSPasteboard;
@@ -346,7 +346,7 @@
APPKIT_EXTERN NSPasteboardType NSPICTPboardType API_DEPRECATED("", macos(10.0,10.6));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboardItem.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSPasteboardItem.h
Application Kit
- Copyright (c) 2008-2021, Apple Inc.
+ Copyright (c) 2008-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSPasteboard.h>
#import <CoreFoundation/CFBase.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPasteboard;
@@ -78,5 +78,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathCell.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathCell.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSPathCell.h
Application Kit
- Copyright (c) 2005-2021, Apple Inc.
+ Copyright (c) 2005-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSMenu.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSImage, NSAnimation, NSPathComponentCell, NSURL, NSPopUpButtonCell, NSNotification, NSOpenPanel;
@@ -121,6 +121,6 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathComponentCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathComponentCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathComponentCell.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathComponentCell.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSPathComponentCell.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSTextFieldCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImage, NSString, NSURL;
@@ -29,5 +29,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControl.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControl.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControl.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControl.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSPathControl.h
Application Kit
- Copyright (c) 2005-2021, Apple Inc.
+ Copyright (c) 2005-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSDragging.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPathComponentCell, NSOpenPanel, NSPathControlItem;
@@ -135,4 +135,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControlItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControlItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControlItem.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPathControlItem.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSPathControlItem.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSImage.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPathComponentCell;
@@ -36,4 +36,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPersistentDocument.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPersistentDocument.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPersistentDocument.h 2023-03-09 19:08:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPersistentDocument.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSPersistentDocument.h
Application Kit
- Copyright (c) 2004-2021, Apple Inc.
+ Copyright (c) 2004-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSDocument.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSManagedObjectModel, NSManagedObjectContext;
@@ -46,6 +46,6 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPickerTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPickerTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPickerTouchBarItem.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPickerTouchBarItem.h 2023-05-31 09:13:49
@@ -1,13 +1,13 @@
/*
NSPickerTouchBarItem.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSTouchBarItem.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@class NSImage, NSColor;
@@ -108,4 +108,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h 2023-05-31 09:13:40
@@ -1,7 +1,7 @@
/*
NSPopUpButton.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSMenuItem.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMenu;
@@ -79,4 +79,4 @@
APPKIT_EXTERN NSNotificationName NSPopUpButtonWillPopUpNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButtonCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButtonCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButtonCell.h 2023-03-09 01:14:34
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButtonCell.h 2023-05-31 09:13:34
@@ -1,7 +1,7 @@
/*
NSPopUpButtonCell.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSMenuItem.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMenu;
@@ -101,4 +101,4 @@
APPKIT_EXTERN NSNotificationName NSPopUpButtonCellWillPopUpNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h 2023-05-31 09:13:42
@@ -1,7 +1,7 @@
/*
NSPopover.h
Application Kit
- Copyright (c) 2010-2021, Apple Inc.
+ Copyright (c) 2010-2023, Apple Inc.
All rights reserved.
*/
@@ -13,10 +13,10 @@
#import <AppKit/NSAppearance.h>
#import <AppKit/NSResponder.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-@class NSView, NSViewController, NSWindow, NSNotification, NSString;
+@class NSView, NSViewController, NSWindow, NSNotification, NSString, NSToolbarItem;
#pragma mark -
#pragma mark Popovers
@@ -136,13 +136,52 @@
*/
@property NSRect positioningRect;
+/* If `YES`, the `contentViewController`'s view will extend into the chevron region of the popover. That view's `safeAreaInsets` will be adjusted accordingly such that anchoring any subviews to its `safeAreaLayoutGuide` will result in constraining to the unclipped content area of the popover. The default value for this property is `NO`.
+
+ The full size content will extend to the containing window's frame, along all edges. Anything outside the popover will be clipped.
+
+ *-------------------------* *-------------------------* *-------------------------* *-------------------------*
+ | /\ | | | | | | |
+ | /-------- ---------\ | | /-------------------\ | | /-------------------\ | | /-------------------\ |
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | > | | < | |
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | | | | | | |
+ | | | | | | | | | | | | | | | |
+ | \-------------------/ | | \-------- ---------/ | | \-------------------/ | | \-------------------/ |
+ | | | \/ | | | | |
+ *-------------------------* *-------------------------* *-------------------------* *-------------------------*
+
+ */
+@property BOOL hasFullSizeContent API_AVAILABLE(macos(14.0));
+
#pragma mark -
#pragma mark Show and Close
-/* Shows the popover positioned relative to positioningRect of positioningView (see the description of positioningRect above). The common case is to pass [positioningView bounds] for positioningRect, in which case the popover will be placed adjacent to the positioningView and there is no need to update positioningRect (AppKit will detect the the bounds of the positioning view was specified and automatically update the positioningView). preferredEdge is a hint to AppKit about the desired placement of the anchor of the popover towards the positioningRect, and is with respect to the -isFlipped state of the positioningView. Also, if positioningRect is an empty rect, the [view bounds] will automatically be used. The current (but not guaranteed) behavior is that AppKit will place the anchor towards the preferredEdge of the positioningRect unless such a placement would cause the popover not to fit on the screen of positioningView. If the anchor cannot be placed towards the preferredEdge, AppKit will (in the current implementation) attempt to place the anchor on the opposite side of the positioningRect. If that cannot be done, AppKit will attempt to place the anchor on a remaining sides of the popover, and failing that will center the popover on the screen, causing it to (at least temporarily) lose its anchor. The popover will animate onscreen and eventually animate offscreen when it is closed (unless the property animates is set to NO). This method will throw a NSInvalidArgumentException if view is nil or if view is not in a window, or if the popover's behavior is NSPopoverBehaviorSemitransient and the popover's positioningView is in a popover or child window. It will throw a NSInternalInconsistencyException if the popover's content view controller (or the view controller's view) is nil. If the popover is already being shown, this method will update to be associated with the new view and positioningRect passed. If the positioning view is not visible, this method does nothing.
- */
+/// Shows the popover anchored to the specified view.
+///
+/// The popover will animate onscreen and eventually animate offscreen when it is closed (unless the property `animates` is set to `NO`).
+///
+/// - Parameters:
+/// - positioningRect: The rectangle within `positioningView` relative to which the popover should be positioned. Normally set to the bounds of `positioningView`. May be an empty rectangle, which will default to the bounds of `positioningView`.
+/// - positioningView: The view relative to which the popover should be positioned. Causes the method to raise `NSInvalidArgumentException` if `nil`.
+/// - preferredEdge: The edge of `positioningView` the popover should prefer to be anchored to (respects to the `-isFlipped` state of `positioningView`). The current (but not guaranteed) behavior is that AppKit will place the anchor towards the `preferredEdge` of the `positioningRect` unless such a placement would cause the popover not to fit on the screen of `positioningView`. If the anchor cannot be placed towards the `preferredEdge`, AppKit will (in the current implementation) attempt to place the anchor on the opposite side of the `positioningRect`. If that cannot be done, AppKit will attempt to place the anchor on a remaining side of the popover, and failing that will center the popover on the screen, causing it to (at least temporarily) lose its anchor.
+///
+/// - Note: This method will throw a `NSInvalidArgumentException` if view is `nil` or if `view` is not in a window, or if the popover’s behavior is `NSPopoverBehaviorSemitransient` and the popover’s `positioningView` is in a popover or child window. It will throw a `NSInternalInconsistencyException` if the popover’s content view controller (or the view controller’s view) is `nil`. If the popover is already being shown, this method will update to be associated with the new `view` and `positioningRect` passed.
+///
+/// - Note: If the positioning view isn’t visible (its window isn’t visible, or the positioning rect is outside of its visible rect), this method does nothing.
- (void)showRelativeToRect:(NSRect)positioningRect ofView:(NSView *)positioningView preferredEdge:(NSRectEdge)preferredEdge;
+/**
+ Shows the popover positioned relative to \c toolbarItem . When the item is in the overflow menu, the popover will be presented from another appropriate affordance in the window. See the comments in \c -showRelativeToRect:ofView:preferredEdge: for the popover behavior.
+
+ This method will throw an \c NSInvalidArgumentException if it cannot locate the toolbar item. This could happen because the item is not in a toolbar, or because the toolbar is not in a window.
+ */
+- (void)showRelativeToToolbarItem:(NSToolbarItem *)toolbarItem NS_SWIFT_NAME(show(relativeTo:)) API_AVAILABLE(macos(14.0));
+
/* Attempts to close the popover. The popover will not be closed if it has a delegate and the delegate returns NO to -popoverShouldClose: (or if the popover's class implements -popoverShouldClose: to return NO). The operation will fail if it is displaying a nested popover, or if it has a child window. A window will attempt to close its popovers when it receives a -performClose: message. The popover will animate out when closed (unless the animates property is set to NO).
*/
- (IBAction)performClose:(nullable id)sender;
@@ -244,4 +283,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopoverTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopoverTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopoverTouchBarItem.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopoverTouchBarItem.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSPopoverTouchBarItem.h
Application Kit
- Copyright (c) 2015-2021, Apple Inc.
+ Copyright (c) 2015-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
@class UIImage;
#endif
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
API_AVAILABLE(macos(10.12.2), ios(13.0))
@interface NSPopoverTouchBarItem : NSTouchBarItem
@@ -73,4 +73,4 @@
- (NSGestureRecognizer *)makeStandardActivatePopoverGestureRecognizer API_UNAVAILABLE(ios);
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditor.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditor.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSPredicateEditor.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSRuleEditor.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSArray, NSPredicateEditorRowTemplate;
@@ -30,5 +30,5 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditorRowTemplate.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditorRowTemplate.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditorRowTemplate.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPredicateEditorRowTemplate.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSPredicateEditorRowTemplate.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <CoreData/NSAttributeDescription.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPredicate, NSEntityDescription, NSView;
@@ -67,5 +67,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressGestureRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressGestureRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressGestureRecognizer.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressGestureRecognizer.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSPressGestureRecognizer.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSGestureRecognizer.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10))
@@ -31,4 +31,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressureConfiguration.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressureConfiguration.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressureConfiguration.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPressureConfiguration.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSPressureConfiguration.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10.3))
@@ -38,4 +38,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPreviewRepresentingActivityItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPreviewRepresentingActivityItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPreviewRepresentingActivityItem.h 2023-03-09 19:08:59
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPreviewRepresentingActivityItem.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSPreviewRepresentingActivityItem.h
Application Kit
- Copyright (c) 2022, Apple Inc.
+ Copyright (c) 2022-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSObject.h>
#import <Foundation/NSString.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImage, NSItemProvider;
@@ -71,4 +71,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintInfo.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintInfo.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintInfo.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintInfo.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSPrintInfo.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSPrinter.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPDFInfo, NSPrinter;
@@ -208,4 +208,4 @@
static const NSPrintingPaginationMode NSClipPagination API_DEPRECATED_WITH_REPLACEMENT("NSPrintingPaginationModeClip", macos(10.0, 11.0)) = NSPrintingPaginationModeClip;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintOperation.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintOperation.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintOperation.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintOperation.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSPrintOperation.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSRange.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMutableData, NSGraphicsContext, NSPDFPanel, NSPrintPanel, NSPrintInfo, NSView, NSWindow;
@@ -152,4 +152,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSPrintPanel.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,11 +12,17 @@
#import <Foundation/NSSet.h>
#import <AppKit/NSHelpManager.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSPrintInfo, NSSet, NSView, NSViewController, NSWindow, NSWindowController;
+API_AVAILABLE(macos(14.0))
+typedef NS_ENUM(NSInteger, NSPrintPanelResult) {
+ NSPrintPanelResultCancelled = 0,
+ NSPrintPanelResultPrinted,
+} NS_SWIFT_NAME(NSPrintPanel.Result) API_AVAILABLE(macos(14.0));
+
typedef NS_OPTIONS(NSUInteger, NSPrintPanelOptions) {
/* Whether the print panel has separate controls (not in any accessory view) that allow the user to change the number of copies to print, which pages to print, paper size, orientation, and scaling, respectively.
@@ -36,7 +42,7 @@
NSPrintPanelShowsPageSetupAccessory = 1 << 8,
/* Whether the print panel has a built-in preview. Setting this option in a print panel that's not being presented by an NSPrintOperation is not useful. Two things you need to be aware of when this option is set:
- 1) the NSPrintInfo passed into -beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo: or -runModalWithPrintInfo: will be retained instead of copied. This is so that the NSPrintOperation that is presenting the panel can respond to -printInfo messages by returning the NSPrintInfo that the user is actually looking at and manipulating, which is the most useful thing for it to return. The result is that the passed-in NSPrintInfo can be mutated even when the user cancels the print panel, but that's OK; the factory methods that you use to create NSPrintOperations do the copying that's appropriate in that case.
+ 1) the NSPrintInfo passed into -beginSheetUsingPrintInfo:onWindow:completionHandler: or -runModalWithPrintInfo: will be retained instead of copied. This is so that the NSPrintOperation that is presenting the panel can respond to -printInfo messages by returning the NSPrintInfo that the user is actually looking at and manipulating, which is the most useful thing for it to return. The result is that the passed-in NSPrintInfo can be mutated even when the user cancels the print panel, but that's OK; the factory methods that you use to create NSPrintOperations do the copying that's appropriate in that case.
2) The presenting NSPrintOperation will send the printing view more messages that it would otherwise, so that it can do pagination right away, draw the preview on screen, etc.
*/
NSPrintPanelShowsPreview = 1 << 17
@@ -102,12 +108,17 @@
// Set or get a string that provides a hint about the type of print job in which this print panel is being used. This controls the set of items that appear in the Presets menu. The string must be one of the job style hint strings declared above, or nil to show general presets.
@property (nullable, copy) NSPrintPanelJobStyleHint jobStyleHint;
+/* Displays the print panel as a sheet on a window.
+ This method returns immediately.
+ When the print panel is dismissed, calls the completion handler with NSPrintPanelResult as the argument.
+*/
+- (void)beginSheetUsingPrintInfo:(NSPrintInfo *)printInfo onWindow:(NSWindow *)parentWindow completionHandler:(void (^_Nullable)(NSPrintPanelResult result))handler API_AVAILABLE(macos(14.0));
/* Present a print panel to the user, document-modally. When the user has dismissed it, send the message selected by didEndSelector to the delegate, with the contextInfo as the last argument. The method selected by didEndSelector must have the same signature as:
- (void)printPanelDidEnd:(NSPrintPanel *)printPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
*/
-- (void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo modalForWindow:(NSWindow *)docWindow delegate:(nullable id)delegate didEndSelector:(nullable SEL)didEndSelector contextInfo:(nullable void *)contextInfo;
+- (void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo modalForWindow:(NSWindow *)docWindow delegate:(nullable id)delegate didEndSelector:(nullable SEL)didEndSelector contextInfo:(nullable void *)contextInfo API_DEPRECATED_WITH_REPLACEMENT("This method will be deprecated in a future release. Use -[NSPrintPanel beginSheetUsingPrintInfo:onWindow:completionHandler:] instead.", macos(10.0, API_TO_BE_DEPRECATED));
/* Present a print panel to the user, application-modally, and return either NSOKButton or NSCancelButton. The default implementation of -runModal just invokes [self runModalWithPrintInfo:[[NSPrintOperation currentOperation] printInfo]].
*/
@@ -115,7 +126,7 @@
- (NSInteger)runModal;
-/* A simple accessor. Your -beginSheetWithPrintInfo:... delegate can use this so it doesn't have to keep a pointer to the NSPrintInfo elsewhere while waiting for the user to dismiss the print panel.
+/* Returns the printInfo passed to `beginSheetUsingPrintInfo:onWindow:completionHandler:`.
*/
@property (readonly, strong) NSPrintInfo *printInfo API_AVAILABLE(macos(10.5));
@@ -133,4 +144,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrinter.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrinter.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrinter.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPrinter.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSPrinter.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <Foundation/NSDictionary.h>
#import <AppKit/NSGraphics.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString;
@@ -107,4 +107,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSProgressIndicator.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSProgressIndicator.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSProgressIndicator.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSProgressIndicator.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSProgressIndicator.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <Foundation/Foundation.h>
#import <Availability.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSUInteger, NSProgressIndicatorStyle) {
@@ -25,10 +25,6 @@
@property (getter=isIndeterminate) BOOL indeterminate;
-@property (getter=isBezeled) BOOL bezeled;
-
-@property NSControlTint controlTint;
-
@property NSControlSize controlSize;
#pragma mark Determinate progress indicator
@@ -42,9 +38,13 @@
@property double minValue;
@property double maxValue;
+/* When set NSProgressIndicator will update doubleValue, minValue, maxValue, and indeterminate automatically.
+ */
+@property (nullable, strong) NSProgress *observedProgress API_AVAILABLE(macos(14.0));
+
#pragma mark Indeterminate progress indicator
-/* YES if the NSProgressIndicator uses a thread instead of a timer (defaults to NO).
+/* YES if the NSProgressIndicator uses a thread instead of a timer (defaults to YES).
*/
@property BOOL usesThreadedAnimation;
@@ -81,7 +81,10 @@
- (NSTimeInterval)animationDelay API_DEPRECATED("The animationDelay property does nothing.", macos(10.0,10.6));
- (void)setAnimationDelay:(NSTimeInterval)delay API_DEPRECATED("The animationDelay property does nothing.", macos(10.0,10.6));
- (void)animate:(nullable id)sender API_DEPRECATED("Use -startAnimation and -stopAnimation instead.", macos(10.0,10.6));
+
+@property (getter=isBezeled) BOOL bezeled API_DEPRECATED("The bezeled property is not respected on 10.15 and later", macos(10.0, 14.0));
+@property NSControlTint controlTint API_DEPRECATED("The controlTint property is not respected on 10.15 and later", macos(10.0, 14.0));
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSResponder.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSPasteboard.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSError, NSEvent, NSMenu, NSUndoManager, NSWindow;
@@ -23,7 +23,7 @@
- (instancetype)init NS_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
-@property (nullable, assign) NSResponder *nextResponder;
+@property (nullable, unsafe_unretained) NSResponder *nextResponder;
- (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
- (BOOL)performKeyEquivalent:(NSEvent *)event;
- (nullable id)validRequestorForSendType:(nullable NSPasteboardType)sendType returnType:(nullable NSPasteboardType)returnType;
@@ -349,5 +349,5 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRotationGestureRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRotationGestureRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRotationGestureRecognizer.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRotationGestureRecognizer.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSRotationGestureRecognizer.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSGestureRecognizer.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.10))
@@ -20,4 +20,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRuleEditor.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRuleEditor.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRuleEditor.h 2023-03-09 01:14:35
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRuleEditor.h 2023-05-31 09:13:36
@@ -1,7 +1,7 @@
/*
NSRuleEditor.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -36,7 +36,7 @@
These key paths can be set using the set*KeyPath: methods below
*/
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSIndexSet, NSView, NSPredicate, NSString, NSViewAnimation;
@@ -205,5 +205,5 @@
APPKIT_EXTERN NSNotificationName const NSRuleEditorRowsDidChangeNotification;
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerMarker.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerMarker.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerMarker.h 2023-03-09 01:14:33
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerMarker.h 2023-05-31 09:13:32
@@ -1,7 +1,7 @@
/*
NSRulerMarker.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSGeometry.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSEvent, NSImage, NSRulerView;
@@ -77,4 +77,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerView.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRulerView.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSRulerView.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSScrollView, NSRulerMarker;
@@ -147,4 +147,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRunningApplication.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRunningApplication.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRunningApplication.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRunningApplication.h 2023-05-31 09:13:47
@@ -1,46 +1,36 @@
/*
NSRunningApplication.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
-
-
-/* NSRunningApplication is a class to manipulate and provide information for a single instance of an application. Only user applications are tracked; this does not provide information about every process on the system.
-
- Some properties of an application are fixed, such as the bundle identifier. Other properties may vary over time, such as whether the app is hidden. Properties that vary can be observed with KVO, in which case the description comment for the method will mention it.
-
- Properties that vary over time are inherently race-prone. For example, a hidden app may unhide itself at any time. To ameliorate this, properties persist until the next turn of the main run loop in a common mode. For example, if you repeatedly poll an unhidden app for its hidden property without allowing the run loop to run, it will continue to return NO, even if the app hides, until the next turn of the run loop.
-
- NSRunningApplication is thread safe, in that its properties are returned atomically. However, it is still subject to the main run loop policy described above. If you access an instance of NSRunningApplication from a background thread, be aware that its time-varying properties may change from under you as the main run loop runs (or not).
-
- An NSRunningApplication instance remains valid after the application exits. However, most properties lose their significance, and some properties may not be available on a terminated application.
-
- To access the list of all running applications, use the -runningApplications method on NSWorkspace.
-*/
-
#import <Foundation/NSObject.h>
#import <Foundation/NSArray.h>
#import <AppKit/NSWorkspace.h>
#import <AppKit/AppKitDefines.h>
-/* The following flags are for activateWithOptions:. */
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+#pragma mark - NSApplicationActivationOptions
+
+/// The following flags are for `-activateWithOptions:` and equivalent.
typedef NS_OPTIONS(NSUInteger, NSApplicationActivationOptions) {
- /* By default, activation brings only the main and key windows forward. If you specify NSApplicationActivateAllWindows, all of the application's windows are brought forward. */
+ /// By default, activation brings only the main and key
+ /// windows forward. If you specify `activateAllWindows`,
+ /// all of the application's windows are brought forward.
NSApplicationActivateAllWindows = 1 << 0,
- /* By default, activation deactivates the calling app (assuming it was active), and then the new app is activated only if there is no currently active application. This prevents the new app from stealing focus from the user, if the app is slow to activate and the user has switched to a different app in the interim. However, if you specify NSApplicationActivateIgnoringOtherApps, the application is activated regardless of the currently active app, potentially stealing focus from the user.
-
- You ALMOST NEVER want to pass this flag, because stealing key focus produces a very bad user experience. */
- NSApplicationActivateIgnoringOtherApps = 1 << 1
+ /// The application is activated regardless of the currently
+ /// active app.
+ NSApplicationActivateIgnoringOtherApps API_DEPRECATED("ignoringOtherApps is deprecated in macOS 14 and will have no effect.", macos(10.6, 14.0)) = 1 << 1
};
+#pragma mark - NSApplicationActivationPolicy
-/* The following activation policies control whether and how an application may be activated. They are determined by the Info.plist. */
+/// The following activation policies control whether and how an application may be activated.
+/// They are determined by the `Info.plist`.
typedef NS_ENUM(NSInteger, NSApplicationActivationPolicy) {
/* The application is an ordinary app that appears in the Dock and may have a user interface. This is the default for bundled apps, unless overridden in the Info.plist. */
NSApplicationActivationPolicyRegular,
@@ -52,79 +42,134 @@
NSApplicationActivationPolicyProhibited
};
-
@class NSLock, NSDate, NSImage, NSURL;
+#pragma mark - NSRunningApplication
+
+/**
+ `NSRunningApplication` is a class to manipulate and provide information for a single instance of an application. Only user applications are tracked; this does not provide information about every process on the system.
+
+ Some properties of an application are fixed, such as the bundle identifier. Other properties may vary over time, such as whether the app is hidden. Properties that vary can be observed with KVO, in which case the description comment for the method will mention it.
+
+ Properties that vary over time are inherently race-prone. For example, a hidden app may unhide itself at any time. To ameliorate this, properties persist until the next turn of the main run loop in a common mode. For example, if you repeatedly poll an unhidden app for its hidden property without allowing the run loop to run, it will continue to return `NO`, even if the app hides, until the next turn of the run loop.
+
+ `NSRunningApplication` is thread safe, in that its properties are returned atomically. However, it is still subject to the main run loop policy described above. If you access an instance of `NSRunningApplication` from a background thread, be aware that its time-varying properties may change from under you as the main run loop runs (or not).
+
+ An `NSRunningApplication` instance remains valid after the application exits. However, most properties lose their significance, and some properties may not be available on a terminated application.
+
+ To access the list of all running applications, use the `-runningApplications` method on `NSWorkspace`.
+*/
API_AVAILABLE(macos(10.6))
@interface NSRunningApplication : NSObject
-/* Indicates that the process is an exited application. This is observable through KVO. */
+/// Indicates that the process is an exited application.
+/// This is observable through KVO.
@property (readonly, getter=isTerminated) BOOL terminated;
-/* Indicates that the process is finished launching, which corresponds to the NSApplicationDidFinishLaunching internal notification. This is observable through KVO. Some applications do not post this notification and so are never reported as finished launching. */
+/// Indicates that the process is finished launching, which corresponds to the @c NSApplicationDidFinishLaunching internal notification.
+/// This is observable through KVO.
+/// Some applications do not post this notification and so are never reported as finished launching.
@property (readonly, getter=isFinishedLaunching) BOOL finishedLaunching;
-/* Indicates whether the application is currently hidden. This is observable through KVO. */
+/// Indicates whether the application is currently hidden.
+/// This is observable through KVO.
@property (readonly, getter=isHidden) BOOL hidden;
-/* Indicates whether the application is currently frontmost. This is observable through KVO. */
+/// Indicates whether the application is currently frontmost.
+/// This is observable through KVO.
@property (readonly, getter=isActive) BOOL active;
-/* Indicates whether the application currently owns the menu bar. This is observable through KVO. */
+/// Indicates whether the application currently owns the menu bar.
+/// This is observable through KVO.
@property (readonly) BOOL ownsMenuBar API_AVAILABLE(macos(10.7));
-/* Indicates the activation policy of the application. This is observable through KVO (the type is usually fixed, but may be changed through a call to -[NSApplication setActivationPolicy:]). */
+/// Indicates the activation policy of the application.
+/// This is observable through KVO (the type is usually fixed, but may be changed through a call to `-[NSApplication setActivationPolicy:]`).
@property (readonly) NSApplicationActivationPolicy activationPolicy;
-/* Indicates the name of the application. This is dependent on the current localization of the referenced app, and is suitable for presentation to the user. */
+/// Indicates the name of the application.
+/// This is dependent on the current localization of the referenced app, and is suitable for presentation to the user.
@property (nullable, readonly, copy) NSString *localizedName;
-/* Indicates the CFBundleIdentifier of the application, or nil if the application does not have an Info.plist. */
+/// Indicates the `CFBundleIdentifier` of the application, or nil if the application does not have an `Info.plist`.
@property (nullable, readonly, copy) NSString *bundleIdentifier;
-/* Indicates the URL to the application's bundle, or nil if the application does not have a bundle. */
+/// Indicates the URL to the application's bundle, or nil if the application does not have a bundle.
@property (nullable, readonly, copy) NSURL *bundleURL;
-/* Indicates the URL to the application's executable. */
+/// Indicates the URL to the application's executable.
@property (nullable, readonly, copy) NSURL *executableURL;
-/* Indicates the process identifier (pid) of the application. Do not rely on this for comparing processes. Use isEqual: instead. Not all applications have a pid. Applications without a pid return -1 from this method. This is observable through KVO (an application's pid may change if it is automatically terminated). */
+/// Indicates the process identifier (pid) of the application.
+/// Do not rely on this for comparing processes. Use `-isEqual:` instead.
+/// @note Not all applications have a pid. Applications without a pid return -1 from this method.
+/// This is observable through KVO (an application's pid may change if it is automatically terminated).
@property (readonly) pid_t processIdentifier;
-/* Indicates the date when the application was launched. This property is not available for all applications. Specifically, it is not available for applications that were launched without going through LaunchServices. */
+/// Indicates the date when the application was launched.
+/// This property is not available for all applications.
+/// Specifically, it is not available for applications that were launched without going through `LaunchServices`.
@property (nullable, readonly, copy) NSDate *launchDate;
-/* Returns the icon of the application. */
+/// @return The icon of the application.
@property (nullable, readonly, strong) NSImage *icon;
-/* Indicates the executing processor architecture for the application, as an NSBundleExecutableArchitecture from NSBundle.h. */
+/// Indicates the executing processor architecture for the application, as an @c NSBundleExecutableArchitecture from `NSBundle.h`.
@property (readonly) NSInteger executableArchitecture;
-/* Attempts to hide or unhide the receiver. These methods return true if the request to hide or unhide was successfully sent, false if not (for example, if the application has quit, or is of a type that cannot be unhidden). */
+/// Attempts to hide the receiver.
+/// @return `YES` if the request to hide or unhide was successfully sent, `NO` if not (for example, if the application has quit, or is of a type that cannot be unhidden).
- (BOOL)hide;
+
+/// Attempts to unhide the receiver.
+/// @return `YES` if the request to hide or unhide was successfully sent, `NO` if not (for example, if the application has quit, or is of a type that cannot be unhidden).
- (BOOL)unhide;
-/* Attempts to activate the receiver. This method return true if the request to activate was successfully sent, false if not (for example, if the application has quit, or is of a type that cannot be activated). */
+/**
+ Attempts to activate the application using the specified options.
+
+ You shouldn’t assume the app will be active immediately
+ after sending this message. The framework also does not
+ guarantee that the app will be activated at all.
+
+ Additionally allows specifying another application to take
+ the active status from, which can be used for coordinated
+ or cooperative activation. The other application should
+ call `-yieldActivationToApplication:` or equivalent prior to this
+ request being sent.
+
+ @return `YES` if the request has been allowed by the system,
+ otherwise `NO`.
+ */
+- (BOOL)activateFromApplication:(NSRunningApplication *)application options:(NSApplicationActivationOptions)options API_AVAILABLE(macos(14.0)) NS_SWIFT_NAME(activate(from:options:));
+
+/// Attempts to activate the receiver.
+/// @return `YES` if the request to activate was successfully sent, `NO` if not (for example, if the application has quit, or is of a type that cannot be activated).
- (BOOL)activateWithOptions:(NSApplicationActivationOptions)options;
-/* Attempts to quit the receiver normally. This method returns true if the request was successfully sent, false if not (for example, if the application is no longer running). This method may return before the receiver exits; you should observe the terminated property or listen for the notification to detect when the app has exited. */
+/// Attempts to quit the receiver normally.
+/// @return `YES` if the request was successfully sent, `NO` if not (for example, if the application is no longer running).
+/// This method may return before the receiver exits; you should observe the terminated property or listen for the notification to detect when the app has exited.
- (BOOL)terminate;
-/* Attempts to force the receiver to quit. This method returns true if the request was successfully sent, false if not (for example, if the application is no longer running). This method may return before the receiver exits; you should observe the terminated property or listen for the notification to detect when the app has exited. */
+/// Attempts to force the receiver to quit.
+/// @return `YES` if the request was successfully sent, `NO` if not (for example, if the application is no longer running).
+/// This method may return before the receiver exits; you should observe the terminated property or listen for the notification to detect when the app has exited.
- (BOOL)forceTerminate;
-/* Returns an array of currently running applications with the given bundle identifier, or an empty array if no apps match. */
+/// @return An array of currently running applications with the given bundle identifier, or an empty array if no apps match.
+ (NSArray<NSRunningApplication *> *)runningApplicationsWithBundleIdentifier:(NSString *)bundleIdentifier;
-/* Returns the running application with the given process identifier, or nil if no application has that pid. Applications that do not have PIDs cannot be returned from this method. */
+/// @return The running application with the given process identifier, or nil if no application has that pid.
+/// Applications that do not have PIDs cannot be returned from this method.
+ (nullable instancetype)runningApplicationWithProcessIdentifier:(pid_t)pid;
-/* Returns an NSRunningApplication representing this application. */
+/// @return An @c NSRunningApplication representing this application.
@property (class, readonly, strong) __kindof NSRunningApplication *currentApplication;
-/*
- * Cause any applications that are invisibly still running (see NSProcessInfo.h automatic termination methods and docs) to terminate as if triggered by system memory pressure
- * This is intended for installer apps and the like to make sure that nothing is unexpectedly relying on the files they're replacing
+/**
+ * Cause any applications that are invisibly still running (see `NSProcessInfo.h` automatic termination methods and docs) to terminate as if triggered by system memory pressure.
+ * This is intended for installer apps and the like to make sure that nothing is unexpectedly relying on the files they're replacing.
*/
+ (void) terminateAutomaticallyTerminableApplications;
@@ -132,15 +177,13 @@
@interface NSWorkspace (NSWorkspaceRunningApplications)
-/* Returns an array of NSRunningApplications representing currently running applications. The order of the array is unspecified, but it is stable, meaning that the relative order of particular applications will not change across multiple calls to runningApplications.
-
- Similar to NSRunningApplication's properties, this property will only change when the main run loop is run in a common mode. Instead of polling, use key-value observing to be notified of changes to this array property.
-
- This property is thread safe, in that it may be called from background threads and the result is returned atomically. This property is observable through KVO.
- */
+/// @return An array of `NSRunningApplication`s representing currently running applications.
+/// The order of the array is unspecified, but it is stable, meaning that the relative order of particular applications will not change across multiple calls to `runningApplications`.
+/// Similar to `NSRunningApplication`'s properties, this property will only change when the main run loop is run in a common mode. Instead of polling, use key-value observing to be notified of changes to this array property.
+///This property is thread safe, in that it may be called from background threads and the result is returned atomically. This property is observable through KVO.
@property (readonly, copy) NSArray<NSRunningApplication *> *runningApplications API_AVAILABLE(macos(10.6));
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSavePanel.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSPanel.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSBox, NSTextField, NSTextView, NSView, NSURL, NSProgressIndicator, NSControl;
@@ -41,6 +41,12 @@
#pragma mark -
#pragma mark Configuration Properties
+/* Gets and sets the identifier.
+ The panel's current state such as the root directory and the current directory are saved and restored relative to the identifier.
+ Note: When the identifier is changed, the properties that depend on the identifier are updated from user defaults. Properties that have a null default value are not changed (and keep their existing value).
+*/
+@property (nullable, copy) NSUserInterfaceItemIdentifier identifier;
+
/* NSSavePanel/NSOpenPanel: Gets and sets the directoryURL shown. A value of nil indicates that the last directory shown to the user will be used. This method will not block to resolve the URL, and the directory will asyncronously be set, if required.
*/
@property (nullable, copy) NSURL *directoryURL API_AVAILABLE(macos(10.6));
@@ -215,7 +221,5 @@
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
@end
-
-
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScreen.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSScreen.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -14,10 +14,10 @@
#import <AppKit/NSGraphics.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-@class NSColorSpace;
+@class CADisplayLink, NSColorSpace;
@interface NSScreen : NSObject
@@ -120,6 +120,13 @@
@end
+API_AVAILABLE(macos(14.0))
+@interface NSScreen (NSDisplayLink)
+/*
+ Returns a new display link whose callback will be invoked in-sync with the display the screen is on. Note that views and windows can move between screens and you may want to get a display link directly from NSView or NSWindow which will track those changes automatically.
+*/
+- (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)selector NS_SWIFT_NAME(displayLink(target:selector:));
+@end
@interface NSScreen (NSDeprecated)
@@ -131,4 +138,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSScrollView.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSTextFinder.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor, NSClipView, NSRulerView, NSScroller;
@@ -187,4 +187,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScroller.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScroller.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScroller.h 2023-03-09 19:08:46
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScroller.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSScroller.h
Application Kit
- Copyright (c) 1994-2022, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSUInteger, NSUsableScrollerParts) {
@@ -134,4 +134,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubber.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubber.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubber.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubber.h 2023-05-31 09:13:45
@@ -1,14 +1,14 @@
/*
NSScrubber.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSControl.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSScrubber, NSScrubberItemView, NSScrubberSelectionView, NSScrubberLayout, NSPanGestureRecognizer, NSPressGestureRecognizer, NSButton, NSNib;
@@ -190,4 +190,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberItemView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberItemView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberItemView.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberItemView.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSScrubberItemView.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/AppKitDefines.h>
#import <os/lock.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSScrubberLayoutAttributes, NSTextField, NSImageView;
@@ -79,4 +79,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSScrubberLayout.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
@protocol NSScrubberDelegate;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSScrubber, NSScrubberFlowLayout, NSIndexSet;
@@ -135,4 +135,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchField.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchField.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchField.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchField.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSearchField.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSTextField.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSSearchFieldRecentsAutosaveName NS_SWIFT_BRIDGED_TYPEDEF;
@@ -64,4 +64,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h 2023-05-31 09:13:39
@@ -1,7 +1,7 @@
/*
NSSearchFieldCell.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -24,7 +24,7 @@
// The item describing a lack of recents uses this tag. Hidden if recents
static const NSInteger NSSearchFieldNoRecentsMenuItemTag = 1003;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSButtonCell, NSMenu, NSMutableArray, NSTimer, NSImage;
@@ -70,5 +70,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchToolbarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchToolbarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchToolbarItem.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSearchToolbarItem.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSSearchToolbarItem.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
@class NSSearchField;
@class NSView;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@@ -42,4 +42,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSecureTextField.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSecureTextField.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSecureTextField.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSecureTextField.h 2023-05-31 09:13:40
@@ -1,7 +1,7 @@
/*
NSSecureTextField.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedCell.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedCell.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSSegmentedCell.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSSegmentedControl.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSMutableArray;
@@ -83,5 +83,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedControl.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedControl.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedControl.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSegmentedControl.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSegmentedControl.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSUserInterfaceCompression.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSImage;
@@ -140,4 +140,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSShadow.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSShadow.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSShadow.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSShadow.h 2023-05-31 09:13:44
@@ -2,7 +2,7 @@
/*
NSShadow.h
Application Kit
- Copyright (c) 2002-2021, Apple Inc.
+ Copyright (c) 2002-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <Foundation/NSGeometry.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@class NSColor;
@@ -34,7 +34,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSShadow.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSharingService.h
Application Kit
- Copyright (c) 2011-2021, Apple Inc.
+ Copyright (c) 2011-2023, Apple Inc.
All rights reserved.
*/
@@ -15,7 +15,7 @@
@class NSString, NSImage, NSMenuItem, NSView, NSError, NSWindow;
@class CKShare, CKContainer;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@@ -316,5 +316,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerToolbarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerToolbarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerToolbarItem.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerToolbarItem.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSSharingServicePickerToolbarItem.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
#import <TargetConditionals.h>
@@ -12,7 +12,7 @@
@protocol NSSharingServicePickerToolbarItemDelegate;
#endif
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
API_AVAILABLE(macos(10.15), ios(10.13))
@interface NSSharingServicePickerToolbarItem : NSToolbarItem
@@ -32,4 +32,4 @@
@end
#endif
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSSharingServicePickerTouchBarItem.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -18,7 +18,7 @@
@protocol NSSharingServicePickerTouchBarItemDelegate;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.12.2), ios(10.13))
@@ -53,4 +53,4 @@
#endif
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSlider.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSlider.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSSliderCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSSlider : NSControl <NSAccessibilitySlider>
@@ -101,4 +101,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSSliderAccessory.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
@class UIImage;
#endif
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@class NSSlider, NSSliderAccessoryBehavior, NSImage;
@@ -62,4 +62,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h 2023-03-09 19:08:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSSliderCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderTouchBarItem.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderTouchBarItem.h 2023-05-31 09:13:46
@@ -1,14 +1,14 @@
/*
NSSliderTouchBarItem.h
Application Kit
- Copyright (c) 2016-2021, Apple Inc.
+ Copyright (c) 2016-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSUserInterfaceCompression.h>
#import <AppKit/NSTouchBarItem.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@class NSSliderAccessory, NSSlider;
@@ -54,4 +54,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSound.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSound.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSound.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSound.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSound.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <Foundation/NSBundle.h>
#import <Foundation/NSDate.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSData, NSURL;
@@ -117,5 +117,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechRecognizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechRecognizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechRecognizer.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechRecognizer.h 2023-05-31 09:13:40
@@ -1,7 +1,7 @@
/*
NSSpeechRecognizer.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <Foundation/NSObject.h>
#import <Foundation/NSArray.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString;
@@ -42,5 +42,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpeechSynthesizer.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSSpeechSynthesizer.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -11,10 +11,12 @@
#import <Foundation/NSDictionary.h>
#import <Foundation/NSRange.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSURL, NSError;
+
+API_DEPRECATED_BEGIN("Use AVSpeechSynthesizer in AVFoundation instead", macos(10.3, 14.0))
@protocol NSSpeechSynthesizerDelegate;
typedef NSString * NSSpeechSynthesizerVoiceName NS_TYPED_ENUM;
@@ -159,8 +161,9 @@
APPKIT_EXTERN NSSpeechCommandDelimiterKey const NSSpeechCommandPrefix API_AVAILABLE(macos(10.5)); // NSString
APPKIT_EXTERN NSSpeechCommandDelimiterKey const NSSpeechCommandSuffix API_AVAILABLE(macos(10.5)); // NSString
+API_DEPRECATED_END
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSSpellChecker.h
Application Kit
- Copyright (c) 1990-2021, Apple Inc.
+ Copyright (c) 1990-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
#import <Foundation/NSTextCheckingResult.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSString, NSOrthography, NSPanel, NSView, NSViewController, NSMenu;
@@ -189,4 +189,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellProtocol.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellProtocol.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellProtocol.h 2023-03-09 01:14:34
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellProtocol.h 2023-05-31 09:13:33
@@ -1,7 +1,7 @@
/*
NSSpellProtocol.h
Application Kit
- Copyright (c) 1990-2021, Apple Inc.
+ Copyright (c) 1990-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
SpellCheckable objects can respond to this method if they want to support not only spell-checking, but spell correction. This message is sent down the responder chain. The receiver should ask the sender for its selectedCell's stringValue (the correct spelling of the word) and replace its selection if appropriate.
*/
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@protocol NSChangeSpelling
@@ -28,4 +28,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellServer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellServer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellServer.h 2023-03-09 01:14:35
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellServer.h 2023-05-31 09:13:35
@@ -1,7 +1,7 @@
/*
NSSpellServer.h
Application Kit
- Copyright (c) 1990-2021, Apple Inc.
+ Copyright (c) 1990-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSSplitView.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSLayoutConstraint.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSSplitViewAutosaveName NS_SWIFT_BRIDGED_TYPEDEF;
@@ -209,4 +209,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewController.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewController.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSSplitViewController.h
Application Kit
- Copyright (c) 2014-2021, Apple Inc.
+ Copyright (c) 2014-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/AppKitDefines.h>
#import <Foundation/NSArray.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
/// This constant can be used with any sizing related \c NSSplitViewController properties to get the default system behavior.
@@ -87,7 +87,10 @@
/// Animatedly collapses or uncollapses the first sidebar split view item in the receiver. Does nothing if the receiver does not contain any sidebars.
- (IBAction)toggleSidebar:(nullable id)sender API_AVAILABLE(macos(10.11));
+/// Animatedly collapses or uncollapses the first inspector split view item in the receiver. Does nothing if the receiver does not contain any inspectors.
+- (IBAction)toggleInspector:(nullable id)sender API_AVAILABLE(macos(14.0));
+
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitViewItem.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSSplitViewItem.h
Application Kit
- Copyright (c) 2014-2021, Apple Inc.
+ Copyright (c) 2014-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSAnimation.h>
#import <AppKit/NSWindow.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSViewController;
@@ -18,7 +18,8 @@
typedef NS_ENUM(NSInteger, NSSplitViewItemBehavior) {
NSSplitViewItemBehaviorDefault,
NSSplitViewItemBehaviorSidebar,
- NSSplitViewItemBehaviorContentList
+ NSSplitViewItemBehaviorContentList,
+ NSSplitViewItemBehaviorInspector API_AVAILABLE(macos(11.0))
} API_AVAILABLE(macos(10.11));
typedef NS_ENUM(NSInteger, NSSplitViewItemCollapseBehavior) {
@@ -76,6 +77,16 @@
*/
+ (instancetype)contentListWithViewController:(NSViewController *)viewController API_AVAILABLE(macos(10.11));
+/*!
+ * Creates a split view item representing an inspector for the provided ViewController.
+ * On macOS 14.0 and above inspectors have the following standard system behavior:
+ * - canCollapse is set to YES
+ * - minimumThickness and maximumThickness are set to the standard inspector size (270) and are not resizable by default
+ * \param viewController The view controller used to set the viewController property
+ * \return An autoreleased SplitViewItem that acts as an inspector.
+ */
++ (instancetype)inspectorWithViewController:(NSViewController *)viewController API_AVAILABLE(macos(11.0));
+
/// The standard behavior type of the receiver. See initializers for descriptions of each behavior.
@property (readonly) NSSplitViewItemBehavior behavior API_AVAILABLE(macos(10.11));
@@ -111,7 +122,12 @@
/// If YES, the split view item can be temporarily uncollapsed during a drag by hovering or deep clicking on its neighboring divider. Defaults to NO.
@property (getter=isSpringLoaded) BOOL springLoaded API_AVAILABLE(macos(10.11));
-/// Whether or not a sidebar is allowed to be full height in the window when the `NSFullSizeContentViewWindowMask` style mask is also set. Only applies to NSSplitViewItemBehaviorSidebar. Defaults to YES
+/// If YES, the item can be collapsed from a window resize. This can differ from `canCollapse`, to allow divider collapsing but not window resize collapsing or vice versa.
+/// Defaults to YES for Sidebars and NO for Inspectors.
+/// - Note: Setting `canCollapse` for sidebars will reset this value to that new value.
+@property BOOL canCollapseFromWindowResize API_AVAILABLE(macos(10.14));
+
+/// Whether or not a sidebar or inspector is allowed to be full height in the window when the `NSFullSizeContentViewWindowMask` style mask is also set. Only applies to NSSplitViewItemBehaviorSidebar and NSSplitViewItemBehaviorInspector. Defaults to YES.
@property BOOL allowsFullHeightLayout API_AVAILABLE(macos(11.0));
/// Specifies a preference for the style of separator displayed between the titlebar and the content of the split view item.
@@ -123,4 +139,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStackView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStackView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStackView.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStackView.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSStackView.h
Application Kit
- Copyright (c) 2012-2021, Apple Inc.
+ Copyright (c) 2012-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSView;
@@ -268,4 +268,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBar.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBar.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBar.h 2023-03-09 01:14:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBar.h 2023-05-31 09:13:41
@@ -1,7 +1,7 @@
/*
NSStatusBar.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -9,23 +9,23 @@
#import <Foundation/NSGeometry.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor;
@class NSFont;
-@class NSStatusItem;
@class NSMutableArray;
+@class NSStatusItem;
static const CGFloat NSVariableStatusItemLength = -1.0;
static const CGFloat NSSquareStatusItemLength = -2.0;
@interface NSStatusBar : NSObject
-@property (class, readonly, strong) NSStatusBar *systemStatusBar;
+@property (class, strong, readonly) NSStatusBar *systemStatusBar;
-- (NSStatusItem*)statusItemWithLength:(CGFloat)length;
-- (void)removeStatusItem:(NSStatusItem*)item;
+- (NSStatusItem *)statusItemWithLength:(CGFloat)length;
+- (void)removeStatusItem:(NSStatusItem *)item;
@property (getter=isVertical, readonly) BOOL vertical;
@property (readonly) CGFloat thickness;
@@ -33,4 +33,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBarButton.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBarButton.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBarButton.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusBarButton.h 2023-05-31 09:13:48
@@ -1,25 +1,25 @@
/*
NSStatusBarButton.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSButton.h>
#import <AppKit/AppKitDefines.h>
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
-/*!
- * StatusBarButtons are the visual representation of NSStatusItems, and are primarily displayed on the right side of the menu bar.
- * When a template image is set as the \c image property of the status bar button, it is rendered with the correct menu bar style. This guarantees that the button will look correct in various button states and appearances (such as dark menu bar).
- */
+/// Status bar buttons are the visual representation of `NSStatusItem`s, and are primarily displayed on the right side of the menu bar.
+/// When a template image is set as the `image` property of the status bar button, it is rendered with the correct menu bar style. This guarantees that the button will look correct in various button states and appearances (such as dark menu bar).
API_AVAILABLE(macos(10.10))
@interface NSStatusBarButton : NSButton
-/// When YES the status bar icon has a disabled/off appearance while still being functional, such as allowing selection and actions. Defaults to NO.
+/// If `YES`, the status bar icon has a disabled/off appearance while still being functional, such as allowing selection and actions. Defaults to `NO`.
@property BOOL appearsDisabled;
@end
API_UNAVAILABLE_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
/*
NSStatusItem.h
Application Kit
- Copyright (c) 1997-2021, Apple Inc.
+ Copyright (c) 1997-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSEvent.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSStatusItemAutosaveName NS_SWIFT_BRIDGED_TYPEDEF;
@@ -91,5 +91,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepper.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepper.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepper.h 2023-03-09 01:14:35
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepper.h 2023-05-31 09:13:36
@@ -1,7 +1,7 @@
/*
NSStepper.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperCell.h 2023-03-09 01:14:36
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperCell.h 2023-05-31 09:13:36
@@ -1,7 +1,7 @@
/*
NSStepperCell.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperTouchBarItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperTouchBarItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperTouchBarItem.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStepperTouchBarItem.h 2023-05-31 09:13:46
@@ -1,13 +1,13 @@
/*
NSStepperTouchBarItem.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSTouchBarItem.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
API_AVAILABLE(macos(10.15), ios(13.0))
@interface NSStepperTouchBarItem : NSTouchBarItem
@@ -45,4 +45,4 @@
@end
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboard.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboard.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboard.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboard.h 2023-05-31 09:13:48
@@ -1,14 +1,14 @@
/*
NSStoryboard.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSStoryboardName NS_SWIFT_BRIDGED_TYPEDEF;
@@ -40,4 +40,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboardSegue.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboardSegue.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboardSegue.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStoryboardSegue.h 2023-05-31 09:13:46
@@ -1,14 +1,14 @@
/*
NSStoryboardSegue.h
Application Kit
- Copyright (c) 2013-2021, Apple Inc.
+ Copyright (c) 2013-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString * NSStoryboardSegueIdentifier NS_SWIFT_BRIDGED_TYPEDEF;
@@ -55,4 +55,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStringDrawing.h 2023-05-31 09:13:49
@@ -1,7 +1,7 @@
#if !__has_include(<UIFoundation/NSStringDrawing.h>)
/*
NSStringDrawing.h
- Copyright (c) 1994-2021, Apple Inc. All rights reserved.
+ Copyright (c) 1994-2023, Apple Inc. All rights reserved.
*/
#import <Foundation/NSString.h>
@@ -9,7 +9,7 @@
@class NSStringDrawingContext;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
// When attributes=nil, the methods declared here uses the default behavior for each attribute described in <AppKit/NSAttributedString.h>. When stringDrawingContext=nil, it's equivalent of passing the default instance initialized with [[NSStringDrawingContext alloc] init].
@@ -76,7 +76,7 @@
@end
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSStringDrawing.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h 2023-05-31 09:13:43
@@ -1,14 +1,14 @@
/*
NSSwitch.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSControl.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.15))
@@ -23,4 +23,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSTabView.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSApplication.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSFont, NSTabViewItem;
@@ -116,4 +116,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewController.h 2023-03-09 19:08:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewController.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSTabViewController.h
Application Kit
- Copyright (c) 2014-2021, Apple Inc.
+ Copyright (c) 2014-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <AppKit/NSTabView.h>
#import <AppKit/NSToolbar.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSInteger, NSTabViewControllerTabStyle) {
@@ -105,4 +105,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewItem.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewItem.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewItem.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabViewItem.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSTabViewItem.h
Application Kit
- Copyright (c) 2000-2021, Apple Inc.
+ Copyright (c) 2000-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor, NSTabView, NSView, NSViewController, NSImage;
@@ -69,5 +69,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableCellView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableCellView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableCellView.h 2023-03-09 19:08:50
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableCellView.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSTableCellView.h
Application Kit
- Copyright (c) 2009-2021, Apple Inc.
+ Copyright (c) 2009-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
#import <AppKit/NSCell.h>
#import <AppKit/NSTableView.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSTextField, NSImageView, NSDraggingImageComponent;
@@ -47,4 +47,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableColumn.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableColumn.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableColumn.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableColumn.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSTableColumn.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSUserInterfaceItemIdentification.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSTableView, NSCell, NSImage, NSSortDescriptor, NSTableHeaderCell;
@@ -101,4 +101,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderCell.h 2023-03-09 01:14:35
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderCell.h 2023-05-31 09:13:35
@@ -1,14 +1,14 @@
/*
NSTableHeaderCell.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSTextFieldCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@interface NSTableHeaderCell : NSTextFieldCell
@@ -24,4 +24,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderView.h 2023-03-09 01:14:34
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableHeaderView.h 2023-05-31 09:13:33
@@ -1,14 +1,14 @@
/*
NSTableHeaderView.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSTableView;
@@ -31,4 +31,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableRowView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableRowView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableRowView.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableRowView.h 2023-05-31 09:13:43
@@ -1,7 +1,7 @@
/*
NSTableRowView.h
Application Kit
- Copyright (c) 2008-2021, Apple Inc.
+ Copyright (c) 2008-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
/* View Based TableView: The NSTableRowView is the view shown for a row in the table. It is responsible for drawing things associated with the row, including the selection highlight, and group row look. Properties can be changed on a row-by-row basis by using the table delegate method -tableView:didAddRowView:forRow:. Modifications of the properties are NOT reflected by the NSTableView instance; the NSTableRowView is simply a representation of the state. In other words, setting rowView.selected will NOT change the -selectedRowIndexes in NSTableView.
*/
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSLayoutConstraint;
@@ -109,4 +109,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableView.h 2023-05-31 09:13:45
@@ -1,7 +1,7 @@
/*
NSTableView.h
Application Kit
- Copyright (c) 1995-2021, Apple Inc.
+ Copyright (c) 1995-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
#import <AppKit/NSUserInterfaceValidation.h>
#import <AppKit/NSTextView.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSTableHeaderView, NSTableColumn, NSIndexSet, NSMutableIndexSet, NSTableRowView, NSNib, NSTableViewRowAction, NSSortDescriptor;
@@ -702,6 +702,15 @@
*/
- (NSArray<NSTableViewRowAction *> *)tableView:(NSTableView *)tableView rowActionsForRow:(NSInteger)row edge:(NSTableRowActionEdge)edge NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.11));
+/* Optional - Column Visibility User Control. Return YES for any column whose visibility is meant to be user-controllable. Implementing this method enables table view to provide a menu or equivalent UI that allows users to hide or show table columns. Any column that is meant to be user-controllable in this way should have a non-empty `.title` property.
+ Note: setting the `.menu` property on tableView's `.headerView` will take precedence over this built-in mechanism.
+ */
+- (BOOL)tableView:(NSTableView *)tableView userCanChangeVisibilityOfTableColumn:(NSTableColumn *)column NS_SWIFT_NAME(tableView(_:userCanChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
+
+/* Optional - Column Visibility User Control. Called when the user alters the visibility of one or more columns via the `tableView:userCanChangeVisibilityOfTableColumn:` UI affordance.
+ */
+- (void)tableView:(NSTableView *)tableView userDidChangeVisibilityOfTableColumns:(NSArray <NSTableColumn *> *)columns NS_SWIFT_NAME(tableView(_:userDidChangeVisibilityOf:)) API_AVAILABLE(macos(14.0));
+
#pragma mark -
#pragma mark ***** Notifications *****
@@ -854,4 +863,4 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewDiffableDataSource.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewDiffableDataSource.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewDiffableDataSource.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewDiffableDataSource.h 2023-05-31 09:13:43
@@ -1,14 +1,14 @@
/*
NSTableViewDiffableDataSource.h
Application Kit
- Copyright (c) 2019-2021, Apple Inc.
+ Copyright (c) 2019-2023, Apple Inc.
All rights reserved.
*/
#import <AppKit/NSTableView.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSTableRowView;
@@ -49,7 +49,6 @@
@property (copy,nullable) NSTableViewDiffableDataSourceRowProvider rowViewProvider;
-// FIXME: GroupRow or SectionHeader?
typedef NSView * _Nonnull (^NSTableViewDiffableDataSourceSectionHeaderViewProvider)(NSTableView * _Nonnull tableView, NSInteger row, id _Nonnull sectionId);
@property (copy,nullable) NSTableViewDiffableDataSourceSectionHeaderViewProvider sectionHeaderViewProvider;
@@ -60,4 +59,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewRowAction.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewRowAction.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewRowAction.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTableViewRowAction.h 2023-05-31 09:13:46
@@ -1,14 +1,14 @@
/*
NSTableViewRowAction.h
Application Kit
- Copyright (c) 2014-2021, Apple Inc.
+ Copyright (c) 2014-2023, Apple Inc.
All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSColor, NSButton, NSImage;
@@ -36,4 +36,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h 2023-05-31 09:13:49
@@ -2,7 +2,7 @@
/*
NSText.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
@class NSColor, NSFont, NSNotification;
@protocol NSTextDelegate;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@@ -195,7 +195,7 @@
static const NSTextAlignment NSJustifiedTextAlignment API_DEPRECATED_WITH_REPLACEMENT("NSTextAlignmentJustified", macos(10.0,10.12)) = NSTextAlignmentJustified;
static const NSTextAlignment NSNaturalTextAlignment API_DEPRECATED_WITH_REPLACEMENT("NSTextAlignmentNatural", macos(10.0,10.12)) = NSTextAlignmentNatural;
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSText.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAlternatives.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAlternatives.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAlternatives.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAlternatives.h 2023-05-31 09:13:46
@@ -2,7 +2,7 @@
/*
NSTextAlternatives.h
Application Kit
- Copyright (c) 2011-2021, Apple Inc.
+ Copyright (c) 2011-2023, Apple Inc.
All rights reserved.
*/
@@ -11,7 +11,7 @@
#import <Foundation/NSNotification.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
@class NSString;
@@ -33,7 +33,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSTextAlternatives.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h 2023-03-09 19:08:51
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachment.h 2023-05-31 09:13:45
@@ -6,7 +6,7 @@
/*
NSTextAttachment.h
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachmentCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachmentCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachmentCell.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextAttachmentCell.h 2023-05-31 09:13:39
@@ -1,6 +1,6 @@
/*
NSTextAttachmentCell.h
- Copyright (c) 2021-2021, Apple Inc.
+ Copyright (c) 2021-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
@class NSLayoutManager;
@class NSTextContainer;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
#if !TARGET_OS_IPHONE
@@ -40,4 +40,4 @@
#endif // !TARGET_OS_IPHONE
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h 2023-03-09 01:14:37
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h 2023-05-31 09:13:39
@@ -1,7 +1,7 @@
/*
NSTextCheckingClient.h
Application Kit
- Copyright (c) 2018-2021, Apple Inc.
+ Copyright (c) 2018-2023, Apple Inc.
All rights reserved.
*/
@@ -14,7 +14,7 @@
#import <AppKit/AppKitDefines.h>
#import <AppKit/NSTextInputClient.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAttributedString, NSView, NSCandidateListTouchBarItem;
@@ -83,4 +83,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingController.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingController.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSTextCheckingController.h
Application Kit
- Copyright (c) 2018-2021, Apple Inc.
+ Copyright (c) 2018-2023, Apple Inc.
All rights reserved.
*/
@@ -18,7 +18,7 @@
#import <AppKit/NSSpellChecker.h>
#import <AppKit/NSTextCheckingClient.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
API_AVAILABLE(macos(10.15))
@@ -72,5 +72,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContainer.h 2023-05-31 09:13:44
@@ -2,7 +2,7 @@
/*
NSTextContainer.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -13,7 +13,7 @@
@class NSBezierPath;
@class NSTextLayoutManager;
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
#if !TARGET_OS_IPHONE
API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0)) @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
@@ -109,7 +109,7 @@
#endif // !TARGET_OS_IPHONE
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
#else
#import <UIFoundation/NSTextContainer.h>
#endif
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContent.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContent.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContent.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContent.h 2023-05-31 09:13:47
@@ -1,7 +1,7 @@
/*
NSTextContent.h
Application Kit
- Copyright (c) 2020-2021, Apple Inc.
+ Copyright (c) 2020-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/AppKitDefines.h>
#import <Availability.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NSString* NSTextContentType NS_TYPED_ENUM;
@@ -17,10 +17,50 @@
APPKIT_EXTERN API_AVAILABLE(macos(11.0)) NSTextContentType const NSTextContentTypeUsername;
APPKIT_EXTERN API_AVAILABLE(macos(11.0)) NSTextContentType const NSTextContentTypePassword;
APPKIT_EXTERN API_AVAILABLE(macos(11.0)) NSTextContentType const NSTextContentTypeOneTimeCode;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeNewPassword;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeNamePrefix;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeGivenName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeMiddleName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeFamilyName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeNameSuffix;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeNickname;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeJobTitle;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeOrganizationName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeLocation;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeFullStreetAddress;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeStreetAddressLine1;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeStreetAddressLine2;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeAddressCity;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeAddressState;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeAddressCityAndState;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeSublocality;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCountryName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypePostalCode;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeTelephoneNumber;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeEmailAddress;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeURL;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardNumber;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardGivenName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardMiddleName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardFamilyName;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardSecurityCode;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardExpiration;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardExpirationMonth;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardExpirationYear;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeCreditCardType;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeShipmentTrackingNumber;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeFlightNumber;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeDateTime;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeBirthdate;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeBirthdateDay;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeBirthdateMonth;
+APPKIT_EXTERN API_AVAILABLE(macos(14.0)) NSTextContentType const NSTextContentTypeBirthdateYear;
@protocol NSTextContent
@property (nullable, copy) NSTextContentType contentType API_AVAILABLE(macos(11.0));
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h 2023-03-09 19:08:58
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h 2023-05-31 09:13:49
@@ -6,7 +6,7 @@
// NSTextContentManager.h
// Text Kit
//
-// Copyright (c) 2018-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2023, Apple Inc. All rights reserved.
//
#import <Foundation/NSArray.h>
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h 2023-03-09 19:08:48
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextElement.h 2023-05-31 09:13:43
@@ -6,7 +6,7 @@
// NSTextElement.h
// Text Kit
//
-// Copyright (c) 2018-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2023, Apple Inc. All rights reserved.
//
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSTextField.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSTextContent.h>
#import <AppKit/NSParagraphStyle.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@protocol NSTextFieldDelegate;
@@ -106,19 +106,30 @@
@end
@protocol NSTextFieldDelegate <NSControlTextEditingDelegate>
+
@optional
+
+/// Provides a customized list of candidates to the text view’s `candidateListTouchBarItem`. Invoked from `-updateCandidates`. `NSTextView` uses the candidates returned from this method and suppress its built-in candidate generation. Returning `nil` from this delegate method allows `NSTextView` to query candidates from `NSSpellChecker`.
+/// - Returns: An array of objects that represent the elements of a selection.
- (nullable NSArray *)textField:(NSTextField *)textField textView:(NSTextView *)textView candidatesForSelectedRange:(NSRange)selectedRange NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.12.2));
+/// Allows customizing the candidate list queried from `NSSpellChecker`.
+/// - Returns: An array of text objects to include in a text selection.
- (NSArray<NSTextCheckingResult *> *)textField:(NSTextField *)textField textView:(NSTextView *)textView candidates:(NSArray<NSTextCheckingResult *> *)candidates forSelectedRange:(NSRange)selectedRange NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.12.2));
+/// Notifies the delegate that the user selected the candidate at index in `-[NSCandidateListTouchBarItem candidates]` for the text view’s `candidateListTouchBarItem`. Returns a Boolean value that indicates whether to select the text object at the index.
+/// - Parameters:
+/// - textField: The text field that sent the message.
+/// - textView: The text view that sent the message.
+/// - index: The index that represents the start of the candidate text to evaluate, or `NSNotFound` if no candidate is to be selected.
+/// - Returns: `YES` if the framework selects the text. `YES` allows `textView` to insert the candidate into the text storage if it’s `NSString`, `NSAttributedString`, or `NSTextCheckingResult`.
- (BOOL)textField:(NSTextField *)textField textView:(NSTextView *)textView shouldSelectCandidateAtIndex:(NSUInteger)index NS_SWIFT_UI_ACTOR API_AVAILABLE(macos(10.12.2));
+
@end
@interface NSTextField(NSDeprecated)
-/* This method is deprecated in 10.8 and higher. Use setTitle: instead.
- */
-- (void)setTitleWithMnemonic:(null_unspecified NSString *)stringWithAmpersand API_DEPRECATED("", macos(10.0,10.8));
+- (void)setTitleWithMnemonic:(null_unspecified NSString *)stringWithAmpersand API_DEPRECATED("Use `-setTitle:` instead", macos(10.0, 10.8));
@end
@@ -126,6 +137,6 @@
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFieldCell.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFieldCell.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFieldCell.h 2023-03-09 19:08:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFieldCell.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSTextFieldCell.h
Application Kit
- Copyright (c) 1994-2021, Apple Inc.
+ Copyright (c) 1994-2023, Apple Inc.
All rights reserved.
*/
@@ -9,7 +9,7 @@
#import <AppKit/NSActionCell.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
typedef NS_ENUM(NSUInteger, NSTextFieldBezelStyle) {
@@ -44,5 +44,5 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextFinder.h 2023-05-31 09:13:44
@@ -1,7 +1,7 @@
/*
NSTextFinder.h
Application Kit
- Copyright (c) 2003-2021, Apple Inc.
+ Copyright (c) 2003-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <AppKit/NSNibDeclarations.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSView, NSOperationQueue;
@@ -180,4 +180,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h 2023-03-09 19:08:52
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h 2023-05-31 09:13:46
@@ -1,7 +1,7 @@
/*
NSTextInputClient.h
Application Kit
- Copyright (c) 2006-2021, Apple Inc.
+ Copyright (c) 2006-2023, Apple Inc.
All rights reserved.
*/
@@ -12,7 +12,7 @@
#import <Foundation/NSAttributedString.h>
#import <AppKit/AppKitDefines.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSAttributedString;
@@ -86,4 +86,4 @@
@end
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h 2023-03-09 19:08:55
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h 2023-05-31 09:13:48
@@ -1,7 +1,7 @@
/*
NSTextInputContext.h
Application Kit
- Copyright (c) 2008-2021, Apple Inc.
+ Copyright (c) 2008-2023, Apple Inc.
All rights reserved.
*/
@@ -10,7 +10,7 @@
#import <AppKit/NSTextInputClient.h>
#import <Foundation/NSNotification.h>
-NS_ASSUME_NONNULL_BEGIN
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
@class NSEvent;
@@ -88,5 +88,5 @@
APPKIT_EXTERN NSNotificationName NSTextInputContextKeyboardSelectionDidChangeNotification API_AVAILABLE(macos(10.6));
API_UNAVAILABLE_END
-NS_ASSUME_NONNULL_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h 1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h 2023-05-31 09:13:44
@@ -0,0 +1,48 @@
+/*
+ NSTextInsertionIndicator.h
+ Application Kit
+ Copyright (c) 2023-2023, Apple Inc.
+ All rights reserved.
+*/
+
+#import <AppKit/AppKit.h>
+
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+
+API_AVAILABLE(macos(14.0))
+typedef NS_ENUM(NSUInteger, NSInsertionIndicatorDisplayMode) {
+ NSTextInsertionIndicatorDisplayModeAutomatic = 0, // Automatically stops and starts blinking during typing and dictation.
+ NSTextInsertionIndicatorDisplayModeHidden,
+ NSTextInsertionIndicatorDisplayModeVisible,
+} NS_SWIFT_NAME(NSTextInsertionIndicator.DisplayMode);
+
+API_AVAILABLE(macos(14.0))
+typedef NS_OPTIONS(NSUInteger, NSTextInsertionIndicatorAutomaticModeOptions) {
+ NSTextInsertionIndicatorAutomaticModeOptionsShowEffectsView = 1 << 0,
+ NSTextInsertionIndicatorAutomaticModeOptionsShowWhileTracking = 1 << 1,
+} NS_SWIFT_NAME(NSTextInsertionIndicator.AutomaticModeOptions);
+
+API_AVAILABLE(macos(14.0))
+@interface NSTextInsertionIndicator : NSView
+
+/// Sets-returns the indicator's display mode.
+@property NSInsertionIndicatorDisplayMode displayMode;
+
+/// The color of the indicator.
+/// @discussion Defaults to the system accent color.
+/// @note If set to @c nil, uses the system accent color.
+@property(copy, null_resettable) NSColor *color;
+
+/// Options for the NSTextInsertionIndicatorDisplayModeAutomatic display mode.
+/// Defaults to NSTextInsertionIndicatorAutomaticModeOptionsShowEffectsView.
+@property NSTextInsertionIndicatorAutomaticModeOptions automaticModeOptions;
+
+/// Sets-returns a block that inserts a view into the view hierarchy.
+/// @discussion During dictation the NSTextInsertionIndicator displays a glow effect by inserting a view below the text view. If an application needs to insert the view in a different way, the application can specify a block of code that will be called when the glow effect needs to be displayed.
+@property (copy, nullable) void (^effectsViewInserter)(NSView *view);
+
+@end
+
+NS_HEADER_AUDIT_END(nullability, sendability)
+API_UNAVAILABLE_END
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h 2023-03-09 19:08:49
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutFragment.h 2023-05-31 09:13:44
@@ -6,7 +6,7 @@
// NSTextLayoutFragment.h
// Text Kit
//
-// Copyright (c) 2017-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2023, Apple Inc. All rights reserved.
//
#import <Foundation/NSArray.h>
@@ -62,6 +62,12 @@
// An array of NSTextLineFragments. Valid when NSTextLayoutFragmentStateLayoutAvailable. KVO-compliant
@property (copy, readonly) NSArray<NSTextLineFragment *> *textLineFragments;
+// Returns the NSTextLineFragment containing verticalOffset if found. When requiresExactMatch=NO, it returns the closest line fragment beyond verticalOffset if no line fragment contains verticalOffset.
+- (nullable NSTextLineFragment *)textLineFragmentForVerticalOffset:(CGFloat)verticalOffset requiresExactMatch:(BOOL)requiresExactMatch API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
+
+// Returns the NSTextLineFragment containing textLocation. When isUpstreamAffinity=YES, it returns the text line fragment ending at textLocation.
+- (nullable NSTextLineFragment *)textLineFragmentForTextLocation:(id <NSTextLocation>)textLocation isUpstreamAffinity:(BOOL)isUpstreamAffinity API_AVAILABLE(macos(14.0), ios(17.0), tvos(17.0)) API_UNAVAILABLE(watchos);
+
// When non-nil, the layout operation is dispatched to the queue asynchronously.
@property (nullable, strong) NSOperationQueue *layoutQueue;
@@ -75,7 +81,7 @@
// The rect for tiling the layout fragment inside the target layout coordinate system typically in an NSTextContainer.
@property (readonly) CGRect layoutFragmentFrame;
-// The bounds defining the area required for rendering the contents. The coordinate system is vertically flipped from the layoutFragmentFrame origin ({0,0} is at the upper left corner). The size should be larger than layoutFragmentFrame.size. The origin could be in the negative coordinate since the rendering could be stretched out of layoutFragmentFrame. Only valid when state > NSTextLayoutFragmentStateEstimatedUsageBounds.
+// The bounds defining the area required for rendering the contents. The coordinate system is relative to the layoutFragmentFrame. The coordinate system is vertically flipped, meaning origin ({0,0} is at the upper-left corner). The size should be larger than layoutFragmentFrame.size. The origin could be in the negative coordinate since the rendering could be stretched out of layoutFragmentFrame. Only valid when state > NSTextLayoutFragmentStateEstimatedUsageBounds.
@property (readonly) CGRect renderingSurfaceBounds;
#pragma mark Custom spacing
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLayoutManager.h 2023-05-31 09:13:43
@@ -6,7 +6,7 @@
// NSTextLayoutManager.h
// Text Kit
//
-// Copyright (c) 2017-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2023, Apple Inc. All rights reserved.
//
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextLineFragment.h 2023-05-31 09:13:47
@@ -6,7 +6,7 @@
// NSTextLineFragment.h
// Text Kit
//
-// Copyright (c) 2017-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2017-2023, Apple Inc. All rights reserved.
//
#import <Foundation/NSArray.h>
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextList.h 2023-05-31 09:13:46
@@ -6,7 +6,7 @@
// NSTextList.h
// Text Kit
//
-// Copyright (c) 2004-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2004-2023, Apple Inc. All rights reserved.
#import <Foundation/NSObject.h>
#import <AppKit/AppKitDefines.h>
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextListElement.h 2023-05-31 09:13:43
@@ -6,7 +6,7 @@
// NSTextListElement.h
// Text Kit
//
-// Copyright (c) 2021, Apple Inc. All rights reserved.
+// Copyright (c) 2021-2023, Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h 2023-03-09 19:08:47
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextRange.h 2023-05-31 09:13:43
@@ -6,7 +6,7 @@
// NSTextRange.h
// Text Kit
//
-// Copyright (c) 2018-2021, Apple Inc. All rights reserved.
+// Copyright (c) 2018-2023, Apple Inc. All rights reserved.
//
#import <Foundation/NSObject.h>
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h 2023-03-09 19:08:53
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextSelection.h 2023-05-31 09:13:46
@@ -6,7 +6,7 @@
// NSTextSelection.h
// Text Kit
//
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status