Skip to content

AppKit macOS xcode27.3 b1

Alex Soto edited this page Nov 4, 2026 · 1 revision

#AppKit.framework

diff -ruN /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h
--- /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2026-10-14 06:44:13
+++ /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h	2026-11-04 09:32:07
@@ -825,6 +825,12 @@
 - (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)selector NS_SWIFT_NAME(displayLink(target:selector:));
 @end
 
+@interface NSWindow (NSWindowDisablesDirectTouchSystemGestures)
+/// Disables direct-touch system gestures when this window is visible.
+///
+/// Defaults to `false`.
+@property BOOL disablesDirectTouchSystemGestures API_AVAILABLE(macos(27.3));
+@end
 
 @protocol NSWindowDelegate <NSObject>
 @optional
diff -ruN /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h
--- /Applications/Xcode_27.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h	2026-10-14 06:44:09
+++ /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWritingToolsCoordinator.h	2026-11-04 09:32:07
@@ -608,6 +608,27 @@
 /// Pass the context objects you create to the provided completion handler before
 /// your method returns. Writing Tools waits for you to call the completion
 /// handler before proceeding with the operation.
+///
+/// ### Subclassing a system text view
+///
+/// `NSTextView` implements this method for you. If you subclass it, call the superclass
+/// implementation and pass along the context objects it provides. You don’t create those
+/// objects, so you can’t choose their text directly — the superclass builds each one from
+/// your text storage.
+///
+/// > Important: Don’t replace the context objects the superclass provides with your own.
+/// Each ``NSWritingToolsCoordinator/Context`` object has a unique identifier, and the
+/// superclass keeps referring to the object it created — including when it reports typing
+/// and undo to the coordinator during the session. Substituting a different object leaves
+/// the two out of sync: those reports are silently discarded, Writing Tools continues from
+/// a stale idea of your text, and the results it applies when the session ends can replace
+/// or delete text beyond the range you intended.
+///
+/// Because the superclass builds each context object from your text storage, attributes
+/// already on your storage are carried into the context. Use that to describe structure
+/// your text storage doesn’t otherwise express: add `NSPresentationIntentAttributeName`
+/// and `NSInlinePresentationIntentAttributeName` to your storage, and include
+/// `NSWritingToolsResultPresentationIntent` in your view’s `allowedWritingToolsResultOptions`.
 - (void)writingToolsCoordinator:(NSWritingToolsCoordinator *)writingToolsCoordinator requestsContextsForScope:(NSWritingToolsCoordinatorContextScope)scope completion:(void(^)(NSArray<NSWritingToolsCoordinatorContext *> *))completion NS_SWIFT_ASYNC_NAME(writingToolsCoordinator(_:contextsFor:));
 
 /// Tells the delegate that there are text changes to incorporate into the view.

Clone this wiki locally