From 0c8d3b539a32c4d4c998d524fb05e26175b09de4 Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Mon, 23 Oct 2023 14:35:27 -0400 Subject: [PATCH] Undo mess from a merge. --- .../NSAttributedStringDocumentAttributes.cs | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/src/Foundation/NSAttributedStringDocumentAttributes.cs b/src/Foundation/NSAttributedStringDocumentAttributes.cs index 15eb9851ab95..8183608693fe 100644 --- a/src/Foundation/NSAttributedStringDocumentAttributes.cs +++ b/src/Foundation/NSAttributedStringDocumentAttributes.cs @@ -212,40 +212,15 @@ public bool ReadOnly { [SupportedOSPlatform ("ios13.0")] [SupportedOSPlatform ("maccatalyst")] [UnsupportedOSPlatform ("tvos")] - [ObsoletedOSPlatform ("ios17.0", message: "Starting with ios17.0 will always return null.")] - [ObsoletedOSPlatform ("maccatalyst17.0", message: "Starting with maccatalyst17.0 will always return null.")] - [ObsoletedOSPlatform ("macos14.0", message: "Starting with macos14.0 will always return null.")] #else - [Deprecated (PlatformName.iOS, 17, 0, message: "Will always return null.")] - [Deprecated (PlatformName.MacCatalyst, 17, 0, message: "Will always return null.")] - [Deprecated (PlatformName.MacOSX, 14, 0, message: "Will always return null.")] [iOS (13, 0)] #endif public NSUrl? ReadAccessUrl { get { - return null; - } - set { - // do nothing - } - } -#endif // !TVOS && !WATCH - -#if !TVOS && !WATCH -#if NET - [SupportedOSPlatform ("macos")] - [SupportedOSPlatform ("ios13.0")] - [SupportedOSPlatform ("maccatalyst")] - [UnsupportedOSPlatform ("tvos")] -#else - [Mac (10, 15), iOS (13, 0), NoTV, NoWatch] -#endif - public string? DocumentReading { - get { - return GetStringValue (NSAttributedStringDocumentReadingOptionKey.NSReadAccessUrlDocumentOption); + return GetNativeValue (NSAttributedStringDocumentReadingOptionKey.NSReadAccessUrlDocumentOption); } set { - SetStringValue (NSAttributedStringDocumentReadingOptionKey.NSReadAccessUrlDocumentOption, value); + SetNativeValue (NSAttributedStringDocumentReadingOptionKey.NSReadAccessUrlDocumentOption, value); } } #endif // !TVOS && !WATCH