Skip to content

AppKit macOS xcode15.0 b3

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_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h	2023-06-15 00:37:14
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenuItem.h	2023-06-30 01:49:43
@@ -26,27 +26,30 @@
 
 + (NSMenuItem *)separatorItem;
 
-+ (instancetype)sectionHeaderWithTitle:(NSString *)title API_AVAILABLE(macos(14.0));
+/// Creates a menu item representing a section header with the provided title.
+/// Section header items are used to provide context to a grouping of menu items.
+/// Items created using this method are non-interactive and do not perform an action.
++ (instancetype)sectionHeaderWithTitle:(NSString *)title API_AVAILABLE(macos(14.0)) NS_REFINED_FOR_SWIFT;
 
 - (instancetype)initWithTitle:(NSString *)string action:(nullable SEL)selector keyEquivalent:(NSString *)charCode NS_DESIGNATED_INITIALIZER;
 - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 
-/* Never call the set method directly it is there only for subclassers.
- */
+/// @note Never call the setter method directly: it is there only for subclassers.
 @property (nullable, assign) NSMenu *menu;
 
-
 @property (readonly) BOOL hasSubmenu;
 @property (nullable, strong) NSMenu *submenu;
 
-/* Returns the NSMenuItem whose submenu contains the receiver, or nil if the receiver does not have a parent item.
-*/
+/// @return The `NSMenuItem` whose submenu contains the receiver, or nil if the receiver does not have a parent item.
 @property (nullable, readonly, assign) NSMenuItem *parentItem API_AVAILABLE(macos(10.6));
 
 @property (copy) NSString *title;
 @property (nullable, copy) NSAttributedString *attributedTitle;
 
 @property (getter=isSeparatorItem, readonly) BOOL separatorItem;
+
+/// Indicates whether the item is a section header.
+/// Section header items are created using the `sectionHeader(title:)` class method.
 @property (getter=isSectionHeader, readonly) BOOL sectionHeader API_AVAILABLE(macos(14.0));
 
 @property (copy) NSString *keyEquivalent;
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h	2023-06-15 00:37:12
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h	2023-06-30 01:49:40
@@ -38,20 +38,20 @@
     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));
+- (void)beginSheetUsingPrintInfo:(NSPrintInfo *)printInfo onWindow:(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 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));
+- (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:onWindow: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;
 
-/* Returns the printInfo passed to `beginSheetUsingPrintInfo:on:completionHandler:`.
+/* Returns the printInfo passed to `beginSheetUsingPrintInfo:onWindow:completionHandler:`.
 */
 @property (nullable, readonly, strong) NSPrintInfo *printInfo;
 
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h	2023-06-15 00:37:15
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSpellChecker.h	2023-06-30 01:49:44
@@ -155,7 +155,7 @@
 - (BOOL)hasLearnedWord:(NSString *)word API_AVAILABLE(macos(10.5));
 - (void)unlearnWord:(NSString *)word API_AVAILABLE(macos(10.5));
 
-/* These methods allow clients to determine the global user preference settings for automatic text replacement, spelling correction, quote substitution, dash substitution, autocapitalization, and double-space-to-period substitution.  Text views by default will follow these automatically, but clients may override that by programmatically setting the values on the text view.  These methods will be useful for non-text view clients and others who wish to keep track of the settings.  Notifications are available (see below) when the settings change. */
+/* These methods allow clients to determine the global user preference settings for automatic text replacement, spelling correction, quote substitution, dash substitution, autocapitalization, double-space-to-period substitution, text completion, and inline prediction.  Text views by default will follow these automatically, but clients may override that by programmatically setting the values on the text view.  These methods will be useful for non-text view clients and others who wish to keep track of the settings.  Notifications are available (see below) when the settings change. */
 @property (class, readonly, getter=isAutomaticTextReplacementEnabled) BOOL automaticTextReplacementEnabled API_AVAILABLE(macos(10.7));
 @property (class, readonly, getter=isAutomaticSpellingCorrectionEnabled) BOOL automaticSpellingCorrectionEnabled API_AVAILABLE(macos(10.7));
 @property (class, readonly, getter=isAutomaticQuoteSubstitutionEnabled) BOOL automaticQuoteSubstitutionEnabled API_AVAILABLE(macos(10.9));
@@ -163,6 +163,7 @@
 @property (class, readonly, getter=isAutomaticCapitalizationEnabled) BOOL automaticCapitalizationEnabled API_AVAILABLE(macos(10.12));
 @property (class, readonly, getter=isAutomaticPeriodSubstitutionEnabled) BOOL automaticPeriodSubstitutionEnabled API_AVAILABLE(macos(10.12));
 @property (class, readonly, getter=isAutomaticTextCompletionEnabled) BOOL automaticTextCompletionEnabled API_AVAILABLE(macos(10.12.2));
+@property (class, readonly, getter=isAutomaticInlinePredictionEnabled) BOOL automaticInlinePredictionEnabled API_AVAILABLE(macos(14.0));
 
 /* Use of the following methods is discouraged; ordinarily language identification should be allowed to take place automatically, or else a specific language should be passed in to the methods that take such an argument, if the language is known in advance.  -setLanguage: allows programmatic setting of the language to spell-check in, for compatibility use if other methods are called with no language specified.  -setLanguage: accepts any of the language formats used by NSBundle, and tries to find the closest match among the available languages.  If -setLanguage: has been called, then -language will return that match; otherwise, it will return Multilingual if there is more than one element in -userPreferredLanguages, or the one element in that array if there is only one.  */
 
@@ -179,6 +180,7 @@
 APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticCapitalizationNotification API_AVAILABLE(macos(10.12));
 APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticPeriodSubstitutionNotification API_AVAILABLE(macos(10.12));
 APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticTextCompletionNotification API_AVAILABLE(macos(10.12.2));
+APPKIT_EXTERN NSNotificationName const NSSpellCheckerDidChangeAutomaticInlinePredictionNotification API_AVAILABLE(macos(14.0));
 
 
 @interface NSSpellChecker(NSDeprecated)
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h	2023-06-15 00:37:08
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextCheckingClient.h	2023-06-30 01:49:46
@@ -37,6 +37,7 @@
 @property NSTextInputTraitType dataDetectionType;
 @property NSTextInputTraitType linkDetectionType;
 @property NSTextInputTraitType textCompletionType;
+@property NSTextInputTraitType inlinePredictionType API_AVAILABLE(macos(14.0));
 @end
 
 @protocol NSTextCheckingClient <NSTextInputClient, NSTextInputTraits>
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h	2023-06-15 00:37:14
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h	2023-06-30 01:49:43
@@ -104,7 +104,7 @@
 
  To support dictation indicator on custom text view, expose this method and `-documentVisibleRect`, and also calls `-[NSTextInputContext willStartScrollingOrZooming]`/ `-[NSTextInputContext didEndScrollingOrZooming]` when needed.
  */
-@property (readonly) NSRect selectionRect API_AVAILABLE(macos(14.0));
+@property (readonly) NSRect unionRectInVisibleSelectedRange API_AVAILABLE(macos(14.0));
 
 /* Return visible rect of document area in screen coordinate. If this method isn't provided, -[NSView  visibleRect] will be used.
 
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h	2023-06-15 00:37:13
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextInsertionIndicator.h	2023-06-30 01:49:41
@@ -16,8 +16,6 @@
     NSTextInsertionIndicatorDisplayModeVisible,
 } NS_SWIFT_NAME(NSTextInsertionIndicator.DisplayMode) API_AVAILABLE(macos(14.0));
 
-typedef NSTextInsertionIndicatorDisplayMode NSInsertionIndicatorDisplayMode API_DEPRECATED("", macos(14.0,14.0));
-
 typedef NS_OPTIONS(NSInteger, NSTextInsertionIndicatorAutomaticModeOptions) {
     NSTextInsertionIndicatorAutomaticModeOptionsShowEffectsView   = 1 << 0,
     NSTextInsertionIndicatorAutomaticModeOptionsShowWhileTracking  = 1 << 1,
diff -ruN /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h
--- /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2023-06-15 00:37:14
+++ /Applications/Xcode_15.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h	2023-06-30 01:49:43
@@ -27,6 +27,7 @@
 #import <AppKit/NSColorPanel.h>
 #import <AppKit/NSMenu.h>
 #import <AppKit/NSTextContent.h>
+#import <AppKit/NSTextCheckingClient.h>
 
 @protocol NSTextViewDelegate;
 @protocol NSTextLayoutOrientationProvider;
@@ -471,6 +472,9 @@
 @property BOOL usesFindBar API_AVAILABLE(macos(10.7));
 
 @property (getter=isIncrementalSearchingEnabled) BOOL incrementalSearchingEnabled API_AVAILABLE(macos(10.7));
+
+// Allows clients to turn inline prediction on or off for this view. The default setting should be appropriate for most purposes, but in some cases clients may wish to set this explicitly.
+@property NSTextInputTraitType inlinePredictionType API_AVAILABLE(macos(14.0));
 
 @end
 
Clone this wiki locally