Skip to content

AppKit macOS xcode14.0 beta4

Chris Hamons edited this page Aug 29, 2022 · 4 revisions

#AppKit.framework https://github.com/xamarin/xamarin-macios/pull/15778

diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h	2022-06-30 19:26:29.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h	2022-07-22 10:05:20.000000000 -0400
@@ -61,6 +61,9 @@
 + (NSFont *)systemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight API_AVAILABLE(macos(10.11));
 + (NSFont *)monospacedDigitSystemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight API_AVAILABLE(macos(10.11));
 
+/* Returns an instance with the specified weight and width. Width values are declared in NSFontDescriptor.h. */
++ (NSFont *)systemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight width:(NSFontWidth)width API_AVAILABLE(macos(13.0));
+
 /* Returns current default monospaced font for system UI. Clients of this API should be aware that the monospaced system font has a similar coverage of default system UI font, which includes Latin and common symbols used for displaying text like source code. For the characters it does not cover, the subtituted fonts are usually not the same width as the monospaced system font, they can be wider, narrower, or variable. To ensure fixed advances in text layout, clients can consider using string attributes like NSFontFixedAdvanceAttribute. */
 + (NSFont *)monospacedSystemFontOfSize:(CGFloat)fontSize weight:(NSFontWeight)weight API_AVAILABLE(macos(10.15));
 
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h	2022-06-30 19:26:37.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h	2022-07-22 10:05:29.000000000 -0400
@@ -76,24 +76,24 @@
 
 + (nullable NSImage *)imageNamed:(NSImageName)name;	/* If this finds & creates the image, only name is saved when archived */
 
+/// Creates a system symbol image with the specified name and value
+/// @param name A name from the system’s SF Symbols catalog
+/// @param description The image’s accessibility description. This description is used automatically by interface elements that display images. Like all accessibility descriptions, use a short localized string that does not include the name of the interface element. For instance, “delete” rather than “delete button”.
 + (nullable instancetype)imageWithSystemSymbolName:(NSString *)symbolName accessibilityDescription:(nullable NSString *)description API_AVAILABLE(macos(11.0));
 
-/** Creates a symbol image with with the specified name and value. The @c value argument is only accommodated if the symbol supports variable rendering.
-
-@param name The name of a symbol image file in the main bundle's catalog.
-@param value The value represented by the symbol. The value should be between 0 and 1 inclusive ([0,1]).
+/// Creates a system symbol image with the specified name and value. The @c value argument is only accommodated if the symbol supports variable rendering.
+/// @param name A name from the system’s SF Symbols catalog
+/// @param value The value represented by the symbol. The value should be between 0 and 1 inclusive ([0,1]).
+/// @param description The image’s accessibility description. This description is used automatically by interface elements that display images. Like all accessibility descriptions, use a short localized string that does not include the name of the interface element. For instance, “delete” rather than “delete button”.
+/// @note Values less than 0 or greater than 1 will be clamped to 0 and 1, respectively.
++ (nullable instancetype)imageWithSystemSymbolName:(NSString *)name variableValue:(double)value accessibilityDescription:(nullable NSString *)description API_AVAILABLE(macos(13.0));
 
-@note Values less than 0 or greater than 1 will be clamped to 0 and 1, respectively. */
+/// Creates a symbol image with the specified name and value. The @c value argument is only accommodated if the symbol supports variable rendering.
+/// @param name A name of a symbol image file in the main bundle’s catalog
+/// @param value The value represented by the symbol. The value should be between 0 and 1 inclusive ([0,1]).
+/// @note Values less than 0 or greater than 1 will be clamped to 0 and 1, respectively.
 + (nullable instancetype)imageWithSymbolName:(NSString *)name variableValue:(double)value API_AVAILABLE(macos(13.0));
 
-/** Creates a system symbol image with the specified name and value. The value argument is only accommodated if the symbol supports variable rendering.
-
-@param name A name from the system's SF Symbols catalog.
-@param value The value represented by the symbol. The value should be between 0 and 1 inclusive ([0,1]).
-
-@note Values less than 0 or greater than 1 will be clamped to 0 and 1, respectively. */
-+ (nullable instancetype)imageWithSystemSymbolName:(NSString *)name variableValue:(double)value accessibilityDescription:(nullable NSString *)description API_AVAILABLE(macos(13.0));
-
 - (instancetype)initWithSize:(NSSize)size NS_DESIGNATED_INITIALIZER;
 - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
Clone this wiki locally