Skip to content

AppKit macOS xcode27.0 b5

Alex Soto edited this page Aug 10, 2026 · 1 revision

#AppKit.framework

diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h	2026-07-16 03:50:27
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKitDefines.h	2026-08-06 01:51:36
@@ -39,12 +39,6 @@
 #endif
 #endif
 
-#if __swift__
-#define APPKIT_SWIFT_FORWARD_DECLARE(DECLARATION) DECLARATION;
-#else
-#define APPKIT_SWIFT_FORWARD_DECLARE(DECLARATION)
-#endif
-
 #ifndef APPKIT_FINAL
 #if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
 #define APPKIT_FINAL __attribute__((objc_subclassing_restricted))
diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h	2026-07-16 03:50:31
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewLayout.h	2026-08-06 01:51:40
@@ -122,6 +122,8 @@
 - (void)prepareLayout;
 
 /* NSCollectionView calls these four methods to determine the layout information.  Implement -layoutAttributesForElementsInRect: to return layout attributes for for supplementary or decoration views, or to perform layout in an as-needed-on-screen fashion. Additionally, all layout subclasses should implement -layoutAttributesForItemAtIndexPath: to return layout attributes instances on demand for specific index paths.  If the layout supports any supplementary or decoration view types, it should also implement the respective atIndexPath: methods for those types.
+
+   During a batch update (-[NSCollectionView performBatchUpdates:completionHandler:], or a diffable data source's -applySnapshot:animatingDifferences:completion:), -layoutAttributesForItemAtIndexPath: must return non-nil attributes for every item that still exists after the update.  Returning nil for such an item is a programming error and will raise an assertion.  This normally means the layout's backing data (for example a section provider) or the data source's contents were changed out of step with the update; apply those changes as part of the update rather than before it.
 */
 - (NSArray<__kindof NSCollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(NSRect)rect; // return an array layout attributes instances for all the views in the given rect
 - (nullable NSCollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath;
diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h	2026-07-16 03:50:34
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSStatusItem.h	2026-08-06 01:51:43
@@ -28,7 +28,7 @@
 @protocol NSStatusItemExpandedInterfaceDelegate <NSObject>
 @required
 
-/*  Status items which do not use an NSMenu but instead position other windows ("expanded interface") relative to the item should begin showing their expanded interface upon receipt of this message. This method should be used instead of manually toggling your interface by target/action handling on the button or item. The expanded interface should be closed upon receipt of -statusItemDidEndExpandedInterfaceSession:animated:. This allows the status item to participate in keyboard navigation and menu tracking behaviors. If the expanded interface is closed through other user action, -cancel should be invoked on statusItem.expandedInterfaceSession. Other user action could be the user clicking an action which should dismiss the interface, or the app detecting a click in another window or app (see NSEvent.addGlobalMonitorForEventsMatchingMask:handler: and NSEvent.addLocalMonitorForEventsMatchingMask:handler:).
+/*  Status items which do not use an NSMenu but instead position other windows ("expanded interface") relative to the item should begin showing their expanded interface upon receipt of this message. This method should be used instead of manually toggling your interface by target/action handling on the button or item. The expanded interface should be closed upon receipt of -statusItemDidEndExpandedInterfaceSession:animated:. This allows the status item to participate in keyboard navigation and menu tracking behaviors. If the expanded interface is closed through other user action, -cancel should be invoked on statusItem.expandedInterfaceSession. Other user action could be the user clicking an action which should dismiss the interface, or the app detecting a click in another window (see NSEvent.addLocalMonitorForEventsMatchingMask:handler:).
  */
 - (void)statusItem:(NSStatusItem *)statusItem didBeginExpandedInterfaceSession:(NSStatusItemExpandedInterfaceSession *)expandedInterfaceSession;
 - (void)statusItemDidEndExpandedInterfaceSession:(NSStatusItem *)statusItem animated:(BOOL)animated;
diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h	2026-07-16 03:50:34
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h	2026-08-06 01:51:43
@@ -48,9 +48,6 @@
 } API_AVAILABLE(macos(10.0), ios(6.0), watchos(2.0), tvos(9.0), visionos(1.0));
 #endif // !__NSTEXT_ALIGNMENT_SHARED_SECTION__
 
-APPKIT_SWIFT_FORWARD_DECLARE(typedef CF_ENUM(uint8_t, CTTextAlignment))
-APPKIT_EXTERN CTTextAlignment NSTextAlignmentToCTTextAlignment(NSTextAlignment nsTextAlignment) API_AVAILABLE(ios(6.0), tvos(9.0), watchos(2.0), visionos(1.0)) API_UNAVAILABLE(macos);
-APPKIT_EXTERN NSTextAlignment NSTextAlignmentFromCTTextAlignment(CTTextAlignment ctTextAlignment) API_AVAILABLE(ios(6.0), tvos(9.0), watchos(2.0), visionos(1.0)) API_UNAVAILABLE(macos);
 
 NS_HEADER_AUDIT_END(nullability, sendability)
 #endif // !TARGET_OS_IPHONE
diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h	2026-07-16 03:50:28
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h	2026-08-06 01:51:37
@@ -533,6 +533,11 @@
 /// the user interacts with an issue, call this to bring up the relevant UI.
 ///
 /// Pass in context and range to identify the issue the user selected.
+/// The context must match one of the contexts returned from
+/// ``NSWritingToolsCoordinator/Delegate/writingToolsCoordinator(_:requestsContextsFor:completion:)``
+/// and the range must match the range in the context of one
+/// of the grammar details returned for that context from
+/// ``NSWritingToolsCoordinator/Delegate/writingToolsCoordinator(_:requestsGrammarResultsFor:completion:)``
 /// Returns NO if the UI cannot be brought up.
 - (BOOL)showGrammarPresentationForRange:(NSRange)range inContext:(NSWritingToolsCoordinatorContext *)context API_AVAILABLE(macos(27.0));
 

Clone this wiki locally