-
Notifications
You must be signed in to change notification settings - Fork 547
AppKit macOS xcode26.0 b5
Alex Soto edited this page Aug 11, 2025
·
2 revisions
#AppKit.framework https://github.com/dotnet/macios/pull/23539
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h 2025-07-17 01:32:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h 2025-07-31 01:35:08
@@ -153,6 +153,7 @@
#import <AppKit/NSUserActivity.h>
#import <AppKit/NSView.h>
#import <AppKit/NSViewController.h>
+#import <AppKit/NSViewLayoutRegion.h>
#import <AppKit/NSWindow.h>
#import <AppKit/NSWindowTab.h>
#import <AppKit/NSWindowTabGroup.h>
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h 2025-07-17 01:32:32
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h 2025-07-31 01:35:14
@@ -160,8 +160,19 @@
*/
- (nullable NSColor *)colorUsingColorSpace:(NSColorSpace *)space;
+/// Generates an HDR color in the extended sRGB colorspace by applying an exposure to the SDR color defined by the red, green, and blue components. The `red`, `green`, and `blue` components have a nominal range of [0..1], `exposure` is a value >= 0. To produce an HDR color, we process the given color in a linear color space, multiplying component values by `2^exposure`. The produced color will have a `contentHeadroom` equal to the linearized exposure value. Each whole value of exposure produces a color that is twice as bright.
++ (NSColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha exposure:(CGFloat)exposure API_AVAILABLE(macos(26.0));
+/// Generates an HDR color in the extended sRGB colorspace by applying an exposure to the SDR color defined by the red, green, and blue components. The `red`, `green`, and `blue` components have a nominal range of [0..1], `linearExposure` is a value >= 1. To produce an HDR color, we process the given color in a linear color space, multiplying component values by `linearExposure `. The produced color will have a `contentHeadroom` equal to `linearExposure`. Each doubling of `linearExposure` produces a color that is twice as bright.
++ (NSColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha linearExposure:(CGFloat)linearExposure API_AVAILABLE(macos(26.0));
+/// Reinterpret the color by applying a new `contentHeadroom` without changing the color components. Changing the `contentHeadroom` redefines the color relative to a different peak white, changing its behavior under tone mapping and the result of calling `standardDynamicRangeColor`. The new color will have a `contentHeadroom` >= 1.0. If called on a color with a color space that does not support extended range, this will return `self`.
+- (NSColor *)colorByApplyingContentHeadroom:(CGFloat)contentHeadroom API_AVAILABLE(macos(26.0));
+
+/// In some cases it is useful to recover the color that was base the SDR color that was exposed to generate an HDR color. If a color's `linearExposure` is > 1, then this will return the base SDR color. If the color is not an HDR color, this will return `self`.
+@property (readonly, copy) NSColor *standardDynamicRangeColor API_AVAILABLE(macos(26.0));
+
+
/* Some convenience methods to create standard colors, typically should not be used for display in user interface elements. Do not make any assumptions about the actual color spaces used: For applications built against the 10.13 SDK these return colors in the sRGB or genericGamma22GrayColorSpace color spaces, while in older apps they use calibrated color spaces.
*/
@property (class, strong, readonly) NSColor *blackColor; /* 0.0 white */
@@ -360,6 +371,9 @@
/* Get the alpha component. Valid on all colors; for colors which do not have alpha components, this will return 1.0 (opaque).
*/
@property (readonly) CGFloat alphaComponent;
+
+/// For HDR colors, the linear brightness multiplier that was applied when generating the color. Colors created with an exposure by NSColor create CGColors that are tagged with a contentHeadroom value. While CGColors created without a contentHeadroom tag will return 0 from CGColorGetHeadroom, NSColors generated in a similar fashion return a linearExposure of 1.0.
+@property (readonly) CGFloat linearExposure API_AVAILABLE(macos(26.0));
/* Pasteboard methods
*/
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h 2025-07-17 01:32:40
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorPanel.h 2025-07-31 01:35:21
@@ -59,6 +59,9 @@
- (void)setTarget:(nullable id)target;
- (void)attachColorList:(NSColorList *)colorList;
- (void)detachColorList:(NSColorList *)colorList;
+
+/// The maximum linear exposure that can be set on a color picked in the color panel. Defaults to 1 and ignores any value less than 1. If set to a value >= 2, the color picked by the panel may have a linear exposure applied to it.
+@property CGFloat maximumLinearExposure API_AVAILABLE(macos(26.0));
@end
@interface NSApplication(NSColorPanel)
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h 2025-07-17 01:32:39
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColorWell.h 2025-07-31 01:35:20
@@ -43,6 +43,9 @@
/// 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));
+/// The maximum linear exposure a color in this color well can be set to. Defaults to 1 and ignores any value less than 1. If set to a value >= 2, the color picked for this well may have a linear exposure applied to it.
+@property CGFloat maximumLinearExposure API_AVAILABLE(macos(26.0));
+
@end
API_UNAVAILABLE_END
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h 2025-07-17 01:32:37
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGlassEffectView.h 2025-07-31 01:35:18
@@ -11,6 +11,14 @@
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+typedef NS_ENUM(NSInteger, NSGlassEffectViewStyle) {
+ /// Standard glass effect style.
+ NSGlassEffectViewStyleRegular,
+ /// Clear glass effect style.
+ NSGlassEffectViewStyleClear
+} API_AVAILABLE(macos(26.0)) NS_SWIFT_NAME(NSGlassEffectView.Style);
+
+
/// A view that embeds its content view in a dynamic glass effect.
API_AVAILABLE(macos(26.0))
@interface NSGlassEffectView: NSView
@@ -25,6 +33,8 @@
/// The color the glass effect view uses to tint the background and glass effect toward.
@property (nullable, copy) NSColor *tintColor;
+/// The style of glass this view uses.
+@property NSGlassEffectViewStyle style;
@end
/// A view that efficiently merges descendant glass effect views together when they are within a specified proximity to each other.
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewLayoutRegion.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewLayoutRegion.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewLayoutRegion.h 1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewLayoutRegion.h 2025-07-31 01:35:14
@@ -0,0 +1,38 @@
+/*
+ NSViewLayoutRegion.h
+ Application Kit
+ Copyright (c) 2025, Apple Inc.
+ All rights reserved.
+*/
+
+#import <AppKit/NSView.h>
+#import <Foundation/Foundation.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+APPKIT_API_UNAVAILABLE_BEGIN_MACCATALYST
+
+typedef NS_ENUM(NSInteger, NSViewLayoutRegionAdaptivityAxis) {
+ NSViewLayoutRegionAdaptivityAxisNone,
+ NSViewLayoutRegionAdaptivityAxisHorizontal,
+ NSViewLayoutRegionAdaptivityAxisVertical,
+} API_AVAILABLE(macos(26.0)) NS_REFINED_FOR_SWIFT;
+
+API_AVAILABLE(macos(26.0)) NS_REFINED_FOR_SWIFT
+@interface NSViewLayoutRegion : NSObject
+
++ (NSViewLayoutRegion *)safeAreaLayoutRegionWithCornerAdaptation:(NSViewLayoutRegionAdaptivityAxis)adaptivityAxis;
++ (NSViewLayoutRegion *)marginsLayoutRegionWithCornerAdaptation:(NSViewLayoutRegionAdaptivityAxis)adaptivityAxis;
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+@interface NSView (LayoutRegions)
+- (NSLayoutGuide *)layoutGuideForLayoutRegion:(NSViewLayoutRegion *)layoutRegion NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(26.0));
+- (NSEdgeInsets)edgeInsetsForLayoutRegion:(NSViewLayoutRegion *)layoutRegion NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(26.0));
+- (NSRect)rectForLayoutRegion:(NSViewLayoutRegion *)layoutRegion NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(26.0));
+@end
+
+API_UNAVAILABLE_END
+NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h 2025-07-17 01:32:36
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h 2025-07-31 01:35:17
@@ -91,11 +91,11 @@
/*!
* @typedef NSWindowCollectionBehavior
*
+ * @discussion You may specify at most one of @c NSWindowCollectionBehaviorPrimary, @c NSWindowCollectionBehaviorAuxiliary, or @c NSWindowCollectionBehaviorCanJoinAllApplications. If unspecified, the window gets the default treatment determined by its other collection behaviors.
+ *
* @const NSWindowCollectionBehaviorPrimary Marks a window as primary. This collection behavior should commonly be used for document or viewer windows.
* @const NSWindowCollectionBehaviorAuxiliary Marks a window as auxiliary. This collection behavior should commonly be used for About or Settings windows, as well as utility panes.
* @const NSWindowCollectionBehaviorCanJoinAllApplications Marks a window as able to join all applications, allowing it to join other apps' sets and full screen spaces when eligible. This collection behavior should commonly be used for floating windows and system overlays.
- *
- * @discussion You may specify at most one of @c NSWindowCollectionBehaviorPrimary, @c NSWindowCollectionBehaviorAuxiliary, or @c NSWindowCollectionBehaviorCanJoinAllApplications. If unspecified, the window gets the default treatment determined by its other collection behaviors.
*
* @const NSWindowCollectionBehaviorDefault
* @const NSWindowCollectionBehaviorCanJoinAllSpaces