From c5187308bb68f1e1736831c06d5d25295fa3b937 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 7 Sep 2023 10:52:02 +0200 Subject: [PATCH] Make a few more types immutable, and hence allowed in NSSet/NSDictionary --- crates/header-translator/src/data/AppKit.rs | 4 ++++ crates/header-translator/src/data/CloudKit.rs | 2 ++ crates/header-translator/src/data/Foundation.rs | 2 ++ crates/icrate/src/generated | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/header-translator/src/data/AppKit.rs b/crates/header-translator/src/data/AppKit.rs index fab0b72b4..57bc56ac4 100644 --- a/crates/header-translator/src/data/AppKit.rs +++ b/crates/header-translator/src/data/AppKit.rs @@ -250,4 +250,8 @@ data! { // `addChildWindow:ordered:` is not safe, as cycles must be prevented } + + class NSTouch: Immutable {} + + class NSUserInterfaceCompressionOptions: Immutable {} } diff --git a/crates/header-translator/src/data/CloudKit.rs b/crates/header-translator/src/data/CloudKit.rs index 89a871f29..4588cc7f1 100644 --- a/crates/header-translator/src/data/CloudKit.rs +++ b/crates/header-translator/src/data/CloudKit.rs @@ -1,2 +1,4 @@ data! { + class CKRecordID: Immutable {} + class CKRecordZoneID: Immutable {} } diff --git a/crates/header-translator/src/data/Foundation.rs b/crates/header-translator/src/data/Foundation.rs index 928fc67fb..40f0b20e3 100644 --- a/crates/header-translator/src/data/Foundation.rs +++ b/crates/header-translator/src/data/Foundation.rs @@ -241,4 +241,6 @@ data! { class NSURLRequest: ImmutableWithMutableSubclass {} class NSMutableURLRequest: MutableWithImmutableSuperclass {} + + class NSIndexPath: Immutable {} } diff --git a/crates/icrate/src/generated b/crates/icrate/src/generated index 560cb6a40..316a9c6f9 160000 --- a/crates/icrate/src/generated +++ b/crates/icrate/src/generated @@ -1 +1 @@ -Subproject commit 560cb6a40f078eed5a6e1af49fdd5299b1ad0ba1 +Subproject commit 316a9c6f9640f34f859c0d9bf0da8973f03a3a00