[Foundation] Move NSAttributedStringDocumentAttributes.Timeout to shared code.

This commit is contained in:
Rolf Bjarne Kvinge 2022-11-23 21:39:27 +01:00
Родитель 556c5fd58d
Коммит 547bb73ab9
4 изменённых файлов: 20 добавлений и 7 удалений

Просмотреть файл

@ -138,10 +138,6 @@ namespace Foundation
}
public partial class NSAttributedStringDocumentAttributes : DictionaryContainer {
public float? Timeout {
get { return GetFloatValue (NSStringAttributeKey.NSTimeoutDocumentOption); }
set { SetNumberValue (NSStringAttributeKey.NSTimeoutDocumentOption, (float?)value); }
}
}
}

Просмотреть файл

@ -361,6 +361,23 @@ namespace Foundation {
}
#endif // !__MACOS__
#if __MACOS__
#if NET
[UnsupportedOSPlatform ("ios")]
[UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
#endif // NET
public float? Timeout {
get {
return GetFloatValue (NSAttributedStringDocumentReadingOptionKey.NSTimeoutDocumentOption);
}
set {
SetNumberValue (NSAttributedStringDocumentReadingOptionKey.NSTimeoutDocumentOption, value);
}
}
#endif // !__MACOS__
#endif // !COREBUILD
}
}

Просмотреть файл

@ -15524,9 +15524,6 @@ namespace AppKit {
NSString TextEffect { get; }
// Internal
[Internal, Field ("NSTimeoutDocumentOption")]
NSString NSTimeoutDocumentOption { get; }
[Internal, Field ("NSFileTypeDocumentOption")]
NSString NSFileTypeDocumentOption { get; }

Просмотреть файл

@ -4411,5 +4411,8 @@ namespace UIKit {
[Internal, Field ("NSTextSizeMultiplierDocumentOption")]
NSString NSTextSizeMultiplierDocumentOption { get; }
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
[Internal, Field ("NSTimeoutDocumentOption")]
NSString NSTimeoutDocumentOption { get; }
}
}