Skip to content

AppKit macOS xcode14.1 b1

Chris Hamons edited this page Oct 11, 2022 · 3 revisions

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

diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h /Applications/Xcode_14.1.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h	2022-08-05 13:40:50.000000000 -0400
+++ /Applications/Xcode_14.1.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSDocument.h	2022-09-07 14:40:00.000000000 -0400
@@ -808,6 +808,23 @@
 /* Return YES if instances of this class should allow the use of ubiquitous document storage. The default implementation of this method returns YES if the application has a valid ubiquity container entitlement. When this method returns YES, NSDocument may do things like add new menu items and other UI for ubiquitous documents and allow documents to be saved or moved into the default ubiquity container. You can override this method to return NO for document classes that should not include these features. */
 @property (class, readonly) BOOL usesUbiquitousStorage API_AVAILABLE(macos(10.8));
 
+#pragma mark *** NSFilePresenter ***
+
+/* The following are declared by NSFilePresenter and are implemented by NSDocument. They will be invoked on the thread specified by -presentedItemOperationQueue: and their implementations should be thread safe.
+ */
+@property (nullable, readonly, copy) NSURL *presentedItemURL NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+@property (readonly, strong) NSSet<NSURLResourceKey> *observedPresentedItemUbiquityAttributes NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.13));
+- (void)relinquishPresentedItemToReader:(void (NS_SWIFT_SENDABLE ^)(void (NS_SWIFT_SENDABLE ^ _Nullable reacquirer)(void)))reader NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)relinquishPresentedItemToWriter:(void (NS_SWIFT_SENDABLE ^)(void (NS_SWIFT_SENDABLE ^ _Nullable reacquirer)(void)))writer NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)savePresentedItemChangesWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(NSError * _Nullable errorOrNil))completionHandler NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)accommodatePresentedItemDeletionWithCompletionHandler:(void (NS_SWIFT_SENDABLE ^)(NSError * _Nullable errorOrNil))completionHandler NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)presentedItemDidMoveToURL:(NSURL *)newURL NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)presentedItemDidChange NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)presentedItemDidChangeUbiquityAttributes:(NSSet<NSURLResourceKey> *)attributes NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.13));
+- (void)presentedItemDidGainVersion:(NSFileVersion *)version NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)presentedItemDidLoseVersion:(NSFileVersion *)version NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+- (void)presentedItemDidResolveConflictVersion:(NSFileVersion *)version NS_SWIFT_NONISOLATED API_AVAILABLE(macos(10.7));
+
 @end
 
 @interface NSDocument(NSDeprecated)
Clone this wiki locally