diff --git a/src/foundation.cs b/src/foundation.cs index b58814bf573b..3736f6c9e3b5 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -4299,6 +4299,10 @@ interface NSDate : NSSecureCoding, NSCopying, CKRecordValue { [MacCatalyst (14, 0)] [Export ("srAbsoluteTime")] double SrAbsoluteTime { get; } + + [Field ("NSSystemClockDidChangeNotification")] + [Notification] + NSString SystemClockDidChangeNotification { get; } } [BaseType (typeof (NSObject))] @@ -5747,6 +5751,10 @@ interface NSTimeZone : NSSecureCoding, NSCopying { [Export ("localizedName:locale:")] string GetLocalizedName (NSTimeZoneNameStyle style, [NullAllowed] NSLocale locale); + + [Notification] + [Field ("NSSystemTimeZoneDidChangeNotification")] + NSString SystemTimeZoneDidChangeNotification { get; } } interface NSUbiquitousKeyValueStoreChangeEventArgs { @@ -6196,7 +6204,6 @@ interface NSUserDefaults { NSString RegistrationDomain { get; } [NoMac] - [NoTV] [MacCatalyst (13, 1)] [Notification] [Field ("NSUserDefaultsSizeLimitExceededNotification")] @@ -6209,14 +6216,12 @@ interface NSUserDefaults { NSString NoCloudAccountNotification { get; } [NoMac] - [NoTV] [MacCatalyst (13, 1)] [Notification] [Field ("NSUbiquitousUserDefaultsDidChangeAccountsNotification")] NSString DidChangeAccountsNotification { get; } [NoMac] - [NoTV] [MacCatalyst (13, 1)] [Notification] [Field ("NSUbiquitousUserDefaultsCompletedInitialSyncNotification")] @@ -10943,6 +10948,10 @@ partial interface NSBundle { [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] [Export ("localizedAttributedStringForKey:value:table:")] NSAttributedString GetLocalizedAttributedString (string key, [NullAllowed] string value, [NullAllowed] string tableName); + + [Notification] + [Field ("NSBundleDidLoadNotification")] + NSString BundleDidLoadNotification { get; } } [NoMac] @@ -12833,6 +12842,13 @@ interface NSThread { [Export ("qualityOfService")] NSQualityOfService QualityOfService { get; set; } + [Notification] + [Field ("NSThreadWillExitNotification")] + NSString ThreadWillExitNotification { get; } + + [Notification] + [Field ("NSWillBecomeMultiThreadedNotification")] + NSString WillBecomeMultiThreadedNotification { get; } } [BaseType (typeof (NSObject))] @@ -12873,6 +12889,10 @@ interface NSPort : NSCoding, NSCopying { [Export ("sendBeforeDate:msgid:components:from:reserved:")] bool SendBeforeDate (NSDate limitDate, nuint msgID, [NullAllowed] NSMutableArray components, [NullAllowed] NSPort receivePort, nuint headerSpaceReserved); #pragma warning restore 618 + + [Notification] + [Field ("NSPortDidBecomeInvalidNotification")] + NSString PortDidBecomeInvalidNotification { get; } } interface INSPortDelegate { } @@ -15679,6 +15699,9 @@ interface NSAppleEventManager { [Export ("resumeWithSuspensionID:")] void ResumeWithSuspensionID (NSAppleEventManagerSuspensionID suspensionID); + [Notification] + [Field ("NSAppleEventManagerWillProcessFirstEventNotification")] + NSString WillProcessFirstEventNotification { get; } } [NoiOS, NoTV, NoWatch] diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore index 38c2a729bc94..a69d3ef189e1 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore @@ -16,7 +16,6 @@ !missing-enum! NSXMLDTDNodeKind not bound !missing-enum! NSXMLNodeKind not bound !missing-enum! NSXMLNodeOptions not bound -!missing-field! NSAppleEventManagerWillProcessFirstEventNotification not bound !missing-field! NSAppleEventTimeOutDefault not bound !missing-field! NSAppleEventTimeOutNone not bound !missing-field! NSClassDescriptionNeededForClassNotification not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index f32555359223..2a1e6030cc26 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -173,6 +173,9 @@ # this is a better named version of `date` which we already bound as `Now` in C# !missing-selector! +NSDate::now not bound +# Apple says this is not implemented +!missing-field! NSDidBecomeSingleThreadedNotification not bound + ## unsorted !extra-designated-initializer! NSSortDescriptor::initWithCoder: is incorrectly decorated with an [DesignatedInitializer] attribute @@ -183,7 +186,6 @@ !missing-enum! NSSearchPathDomainMask not bound !missing-enum! NSStringEncodingConversionOptions not bound !missing-field! NSAverageKeyValueOperator not bound -!missing-field! NSBundleDidLoadNotification not bound !missing-field! NSCalendarIdentifierIslamic not bound !missing-field! NSCharacterConversionException not bound !missing-field! NSCountKeyValueOperator not bound @@ -192,7 +194,6 @@ !missing-field! NSDecimalNumberOverflowException not bound !missing-field! NSDecimalNumberUnderflowException not bound !missing-field! NSDestinationInvalidException not bound -!missing-field! NSDidBecomeSingleThreadedNotification not bound !missing-field! NSDistinctUnionOfArraysKeyValueOperator not bound !missing-field! NSDistinctUnionOfObjectsKeyValueOperator not bound !missing-field! NSDistinctUnionOfSetsKeyValueOperator not bound @@ -215,15 +216,11 @@ !missing-field! NSObjectNotAvailableException not bound !missing-field! NSOldStyleException not bound !missing-field! NSParseErrorException not bound -!missing-field! NSPortDidBecomeInvalidNotification not bound !missing-field! NSPortReceiveException not bound !missing-field! NSPortSendException not bound !missing-field! NSPortTimeoutException not bound !missing-field! NSRangeException not bound !missing-field! NSSumKeyValueOperator not bound -!missing-field! NSSystemClockDidChangeNotification not bound -!missing-field! NSSystemTimeZoneDidChangeNotification not bound -!missing-field! NSThreadWillExitNotification not bound !missing-field! NSUndefinedKeyException not bound !missing-field! NSUnionOfArraysKeyValueOperator not bound !missing-field! NSUnionOfObjectsKeyValueOperator not bound @@ -235,7 +232,6 @@ !missing-field! NSURLErrorFailingURLStringErrorKey not bound !missing-field! NSURLErrorNetworkUnavailableReasonKey not bound !missing-field! NSURLFileScheme not bound -!missing-field! NSWillBecomeMultiThreadedNotification not bound !missing-field! NSXMLParserErrorDomain not bound !missing-pinvoke! NSAllocateMemoryPages is not bound !missing-pinvoke! NSAllocateObject is not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore index 5eac86edbf70..3a76c97eaa98 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore @@ -24,7 +24,6 @@ !missing-enum! NSXMLDTDNodeKind not bound !missing-enum! NSXMLNodeKind not bound !missing-enum! NSXMLNodeOptions not bound -!missing-field! NSAppleEventManagerWillProcessFirstEventNotification not bound !missing-field! NSAppleEventTimeOutDefault not bound !missing-field! NSAppleEventTimeOutNone not bound !missing-field! NSAppleScriptErrorAppName not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore index 2e7ff513f4fd..edc1a2d45f10 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore @@ -1,9 +1,3 @@ -## shown as available in iOS 9.3 in tvOS header files (from Xcode 7.3) so normally available in tvOS 9.2 -## In reality it's only available in the simulator, not on AppleTV devices (all fields are null) -!missing-field! NSUbiquitousUserDefaultsCompletedInitialSyncNotification not bound -!missing-field! NSUbiquitousUserDefaultsDidChangeAccountsNotification not bound -!missing-field! NSUserDefaultsSizeLimitExceededNotification not bound - ## does not exists in iOS (or tvOS) as a type - but some API refers to it (messy) !unknown-type! NSPortMessage bound diff --git a/tests/xtro-sharpie/common-Foundation.ignore b/tests/xtro-sharpie/common-Foundation.ignore index 6163f91660ce..25d807cca813 100644 --- a/tests/xtro-sharpie/common-Foundation.ignore +++ b/tests/xtro-sharpie/common-Foundation.ignore @@ -183,6 +183,9 @@ # this is a better named version of `date` which we already bound as `Now` in C# !missing-selector! +NSDate::now not bound +# Apple says this is not implemented +!missing-field! NSDidBecomeSingleThreadedNotification not bound + ## unsorted !extra-designated-initializer! NSSortDescriptor::initWithCoder: is incorrectly decorated with an [DesignatedInitializer] attribute @@ -192,7 +195,6 @@ !missing-enum! NSSearchPathDomainMask not bound !missing-enum! NSStringEncodingConversionOptions not bound !missing-field! NSAverageKeyValueOperator not bound -!missing-field! NSBundleDidLoadNotification not bound !missing-field! NSCalendarIdentifierIslamic not bound !missing-field! NSCharacterConversionException not bound !missing-field! NSCountKeyValueOperator not bound @@ -201,7 +203,6 @@ !missing-field! NSDecimalNumberOverflowException not bound !missing-field! NSDecimalNumberUnderflowException not bound !missing-field! NSDestinationInvalidException not bound -!missing-field! NSDidBecomeSingleThreadedNotification not bound !missing-field! NSDistinctUnionOfArraysKeyValueOperator not bound !missing-field! NSDistinctUnionOfObjectsKeyValueOperator not bound !missing-field! NSDistinctUnionOfSetsKeyValueOperator not bound @@ -224,15 +225,11 @@ !missing-field! NSObjectNotAvailableException not bound !missing-field! NSOldStyleException not bound !missing-field! NSParseErrorException not bound -!missing-field! NSPortDidBecomeInvalidNotification not bound !missing-field! NSPortReceiveException not bound !missing-field! NSPortSendException not bound !missing-field! NSPortTimeoutException not bound !missing-field! NSRangeException not bound !missing-field! NSSumKeyValueOperator not bound -!missing-field! NSSystemClockDidChangeNotification not bound -!missing-field! NSSystemTimeZoneDidChangeNotification not bound -!missing-field! NSThreadWillExitNotification not bound !missing-field! NSUndefinedKeyException not bound !missing-field! NSUnionOfArraysKeyValueOperator not bound !missing-field! NSUnionOfObjectsKeyValueOperator not bound @@ -244,7 +241,6 @@ !missing-field! NSURLErrorFailingURLStringErrorKey not bound !missing-field! NSURLErrorNetworkUnavailableReasonKey not bound !missing-field! NSURLFileScheme not bound -!missing-field! NSWillBecomeMultiThreadedNotification not bound !missing-field! NSXMLParserErrorDomain not bound !missing-pinvoke! NSAllocateMemoryPages is not bound !missing-pinvoke! NSAllocateObject is not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.ignore b/tests/xtro-sharpie/macOS-Foundation.ignore index 752b0fa80398..943111fb1782 100644 --- a/tests/xtro-sharpie/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/macOS-Foundation.ignore @@ -28,7 +28,6 @@ !missing-enum! NSXMLDTDNodeKind not bound !missing-enum! NSXMLNodeKind not bound !missing-enum! NSXMLNodeOptions not bound -!missing-field! NSAppleEventManagerWillProcessFirstEventNotification not bound !missing-field! NSAppleEventTimeOutDefault not bound !missing-field! NSAppleEventTimeOutNone not bound !missing-field! NSAppleScriptErrorAppName not bound diff --git a/tests/xtro-sharpie/tvOS-Foundation.ignore b/tests/xtro-sharpie/tvOS-Foundation.ignore index db0ea2903fbe..fde28934f21f 100644 --- a/tests/xtro-sharpie/tvOS-Foundation.ignore +++ b/tests/xtro-sharpie/tvOS-Foundation.ignore @@ -1,9 +1,3 @@ -## shown as available in iOS 9.3 in tvOS header files (from Xcode 7.3) so normally available in tvOS 9.2 -## In reality it's only available in the simulator, not on AppleTV devices (all fields are null) -!missing-field! NSUbiquitousUserDefaultsCompletedInitialSyncNotification not bound -!missing-field! NSUbiquitousUserDefaultsDidChangeAccountsNotification not bound -!missing-field! NSUserDefaultsSizeLimitExceededNotification not bound - ## does not exists in iOS (or tvOS) as a type - but some API refers to it (messy) !unknown-type! NSPortMessage bound