Skip to content

Commit b5b79aa

Browse files
committed
Make a few more types immutable, and hence allowed in NSSet/NSDictionary
1 parent b4cb59e commit b5b79aa

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

crates/header-translator/src/data/AppKit.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,4 +250,8 @@ data! {
250250

251251
// `addChildWindow:ordered:` is not safe, as cycles must be prevented
252252
}
253+
254+
class NSTouch: Immutable {}
255+
256+
class NSUserInterfaceCompressionOptions: Immutable {}
253257
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
data! {
2+
class CKRecordID: Immutable {}
3+
class CKRecordZoneID: Immutable {}
24
}

crates/header-translator/src/data/Foundation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,6 @@ data! {
241241

242242
class NSURLRequest: ImmutableWithMutableSubclass<Foundation::NSMutableURLRequest> {}
243243
class NSMutableURLRequest: MutableWithImmutableSuperclass<Foundation::NSURLRequest> {}
244+
245+
class NSIndexPath: Immutable {}
244246
}

crates/icrate/src/generated

0 commit comments

Comments
 (0)