Skip to content

QuickLook macOS xcode16.0 b1

Rolf Bjarne Kvinge edited this page Aug 15, 2024 · 3 revisions

#QuickLook.framework https://github.com/xamarin/xamarin-macios/pull/21052

diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLBase.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLBase.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLBase.h	2024-04-13 21:37:33
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLBase.h	2024-05-30 03:48:44
@@ -20,7 +20,7 @@
 
 #define QUICKLOOK_VERSION 6250
 
-#define QL_EXPORT extern
+#define QL_EXPORT extern __attribute__((visibility("default")))
 #define QL_PRIVATE_EXPORT __attribute__((visibility("hidden")))
 #define QL_INLINE static __inline__ __attribute__((always_inline))
 #define QL_NOINLINE __attribute__((noinline))
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnail.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnail.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnail.h	2024-04-13 21:37:32
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnail.h	2024-05-30 03:48:44
@@ -24,7 +24,7 @@
 
 typedef struct CF_BRIDGED_TYPE(id) __QLThumbnail *QLThumbnailRef;
 
-QL_EXPORT CFTypeID QLThumbnailGetTypeID(void) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT CFTypeID QLThumbnailGetTypeID(void) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, 15.0));
 
 /*
  @function QLThumbnailCreate
@@ -35,28 +35,28 @@
  @param options Optional hints for the thumbnail. (Only kQLThumbnailOptionScaleFactorKey is available for now)
  @result The thumbnail instance.
  */
-QL_EXPORT QLThumbnailRef QLThumbnailCreate(CFAllocatorRef allocator, CFURLRef url, CGSize maxThumbnailSize, CFDictionaryRef options) API_DEPRECATED("Use QLThumbnailGenerationRequest in QuickLookThumbnailing to generate thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT QLThumbnailRef QLThumbnailCreate(CFAllocatorRef allocator, CFURLRef url, CGSize maxThumbnailSize, CFDictionaryRef options) API_DEPRECATED("Use QLThumbnailGenerationRequest in QuickLookThumbnailing to generate thumbnails.", macos(10.6, 15.0));
 
 /*
  @function QLThumbnailCopyDocumentURL
  @abstract Returns the URL of the document to thumbnail.
  @param thumbnail The thumbnail to compute.
  */
-QL_EXPORT CFURLRef QLThumbnailCopyDocumentURL(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT CFURLRef QLThumbnailCopyDocumentURL(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, 15.0));
 
 /*
  @function QLThumbnailGetMaximumSize
  @abstract Returns the maximum size (in points) allowed for the thumbnail image.
  @param thumbnail The thumbnail to compute.
  */
-QL_EXPORT CGSize QLThumbnailGetMaximumSize(QLThumbnailRef thumbnail) API_DEPRECATED("Use QLThumbnailGenerationRequest in QuickLookThumbnailing.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT CGSize QLThumbnailGetMaximumSize(QLThumbnailRef thumbnail) API_DEPRECATED("Use QLThumbnailGenerationRequest in QuickLookThumbnailing.", macos(10.6, 15.0));
 
 /*
  @function QLThumbnailCopyOptions
  @abstract Returns the options for the thumbnail.
  @param thumbnail The thumbnail to compute.
  */
-QL_EXPORT CFDictionaryRef QLThumbnailCopyOptions(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT CFDictionaryRef QLThumbnailCopyOptions(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, 15.0));
 
 #if __BLOCKS__ && MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED
 /*
@@ -67,7 +67,7 @@
  @param completion The completion block called upon thumbnail completion.
  @discussion The completion block will always be called, even if the thumbnail computation has been cancelled.
  */
-QL_EXPORT void QLThumbnailDispatchAsync(QLThumbnailRef thumbnail, dispatch_queue_t queue, dispatch_block_t completion) API_DEPRECATED("Use QLThumbnailGenerator in QuickLookThumbnailing to generate thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT void QLThumbnailDispatchAsync(QLThumbnailRef thumbnail, dispatch_queue_t queue, dispatch_block_t completion) API_DEPRECATED("Use QLThumbnailGenerator in QuickLookThumbnailing to generate thumbnails.", macos(10.6, 15.0));
 #endif
 
 /*
@@ -78,7 +78,7 @@
  @discussion If called without a previous of QLThumbnailDispatchAsync(), the call will block until the thumbnail is computed.
              QLThumbnailCopyImage() should not be called during async dispatch (before the completion block has been called)
  */
-QL_EXPORT CGImageRef QLThumbnailCopyImage(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT CGImageRef QLThumbnailCopyImage(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, 15.0));
 
 /*
  @function QLThumbnailGetContentRect
@@ -88,7 +88,7 @@
  @param thumbnail The thumbnail to compute.
  @result The content rect of the thumbnail expressed in pixel coordinates.
  */
-QL_EXPORT CGRect QLThumbnailGetContentRect(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT CGRect QLThumbnailGetContentRect(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, 15.0));
 
 
 /*
@@ -98,14 +98,14 @@
  @discussion If used with QLThumbnailDispatchAsync() the completion callback will be called.
              If used in synchronous mode, QLThumbnailCopyImage() will return immediately NULL.
  */
-QL_EXPORT void QLThumbnailCancel(QLThumbnailRef thumbnail) API_DEPRECATED("Use [QLThumbnailGenerator cancelRequest:] in QuickLookThumbnailing.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT void QLThumbnailCancel(QLThumbnailRef thumbnail) API_DEPRECATED("Use [QLThumbnailGenerator cancelRequest:] in QuickLookThumbnailing.", macos(10.6, 15.0));
 
 /*
  @function QLThumbnailIsCancelled
  @abstract Returns wether the thumbnail computation has been cancelled.
  @param thumbnail The thumbnail to compute.
  */
-QL_EXPORT Boolean QLThumbnailIsCancelled(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, API_TO_BE_DEPRECATED));
+QL_EXPORT Boolean QLThumbnailIsCancelled(QLThumbnailRef thumbnail) API_DEPRECATED("Use QuickLookThumbnailing for thumbnails.", macos(10.6, 15.0));
 
 
 QL_EXTERN_C_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailImage.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailImage.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailImage.h	2024-04-13 21:37:32
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailImage.h	2024-05-30 03:48:44
@@ -27,7 +27,7 @@
  *      @discussion QLThumbnailImageCreate() does not replace IconServices.
  *                  Also QLThumbnailImageCreate() will block until the thumbnail is generated so you should consider calling it in a thread.
  */
-QL_EXPORT CGImageRef QLThumbnailImageCreate(CFAllocatorRef allocator, CFURLRef url, CGSize maxThumbnailSize, CFDictionaryRef options) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
+QL_EXPORT CGImageRef QLThumbnailImageCreate(CFAllocatorRef allocator, CFURLRef url, CGSize maxThumbnailSize, CFDictionaryRef options) API_DEPRECATED("Use QuickLookThumbnailing to generate thumbnails for files.", macos(10.6, 15.0));
 
 /*
  * Options for the thumbnail.
Clone this wiki locally