From 0a8f6fe4ea3aa727faff80e274a94ad6ea7612ed Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 22 Sep 2026 20:33:17 +0200 Subject: [PATCH] Fix build on macOS 26 SDK --- MP42/MP42FileImporter.h | 5 ++--- MP42/MP42FileImporter.m | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MP42/MP42FileImporter.h b/MP42/MP42FileImporter.h index 11b5e80..eed51d5 100644 --- a/MP42/MP42FileImporter.h +++ b/MP42/MP42FileImporter.h @@ -25,9 +25,8 @@ NS_ASSUME_NONNULL_BEGIN + (NSArray *)supportedFileFormats; + (BOOL)canInitWithFileType:(NSString *)fileType; -+ (NSArray *)supportedContentTypes; -+ (BOOL)canInitWithContentType:(UTType *)contentType; - ++ (NSArray *)supportedContentTypes API_AVAILABLE(macos(11.0)); ++ (BOOL)canInitWithContentType:(UTType *)contentType API_AVAILABLE(macos(11.0)); - (nullable instancetype)initWithURL:(NSURL *)fileURL error:(NSError * __autoreleasing *)error; diff --git a/MP42/MP42FileImporter.m b/MP42/MP42FileImporter.m index 96f4705..cafce31 100644 --- a/MP42/MP42FileImporter.m +++ b/MP42/MP42FileImporter.m @@ -37,7 +37,7 @@ static NSArray *_fileImporters; static NSArray *_supportedFileFormats; /// The supporter uniform type identifiers. -static NSArray *_supportedContentTypes; +static NSArray *_supportedContentTypes API_AVAILABLE(macos(11.0)); @implementation MP42FileImporter {