Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions src/foundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -6196,7 +6204,6 @@ interface NSUserDefaults {
NSString RegistrationDomain { get; }

[NoMac]
[NoTV]
[MacCatalyst (13, 1)]
[Notification]
[Field ("NSUserDefaultsSizeLimitExceededNotification")]
Expand All @@ -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")]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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))]
Expand Down Expand Up @@ -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 { }
Expand Down Expand Up @@ -15679,6 +15699,9 @@ interface NSAppleEventManager {
[Export ("resumeWithSuspensionID:")]
void ResumeWithSuspensionID (NSAppleEventManagerSuspensionID suspensionID);

[Notification]
[Field ("NSAppleEventManagerWillProcessFirstEventNotification")]
NSString WillProcessFirstEventNotification { get; }
}

[NoiOS, NoTV, NoWatch]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 3 additions & 7 deletions tests/xtro-sharpie/common-Foundation.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/xtro-sharpie/macOS-Foundation.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions tests/xtro-sharpie/tvOS-Foundation.ignore
Original file line number Diff line number Diff line change
@@ -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

Expand Down