Skip to content

Commit

Permalink
Make a few more types immutable, and hence allowed in NSSet/NSDictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Sep 7, 2023
1 parent 5890d71 commit 7508af1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/header-translator/src/data/AppKit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,8 @@ data! {

// `addChildWindow:ordered:` is not safe, as cycles must be prevented
}

class NSTouch: Immutable {}

class NSUserInterfaceCompressionOptions: Immutable {}
}
2 changes: 2 additions & 0 deletions crates/header-translator/src/data/CloudKit.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
data! {
class CKRecordID: Immutable {}
class CKRecordZoneID: Immutable {}
}
2 changes: 2 additions & 0 deletions crates/header-translator/src/data/Foundation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,6 @@ data! {

class NSURLRequest: ImmutableWithMutableSubclass<Foundation::NSMutableURLRequest> {}
class NSMutableURLRequest: MutableWithImmutableSuperclass<Foundation::NSURLRequest> {}

class NSIndexPath: Immutable {}
}
2 changes: 1 addition & 1 deletion crates/icrate/src/generated

0 comments on commit 7508af1

Please sign in to comment.