File tree 5 files changed +9
-9
lines changed 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ appkit-nsworkspace-bindings = { path = "crates/macos-utils/appkit-nsworkspace-bi
35
35
async-trait = " 0.1.74"
36
36
aws-types = " 1.2.0"
37
37
base64 = " 0.22.1"
38
+ block2 = " 0.5.1"
38
39
bytes = " 1.5.0"
39
40
bitflags = { version = " 2.6.0" , features = [" serde" ] }
40
41
bstr = " 1.1.0"
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ struct Ivars {
56
56
declare_class ! (
57
57
struct MyInputController ;
58
58
59
- // - The superclass NSObject does not have any subclassing requirements.
59
+ // - The superclass IMKInputController does not have any subclassing requirements.
60
60
// - Interior mutability is a safe default.
61
- // - `MyCustomObject ` does not implement `Drop`.
61
+ // - `MyInputController ` does not implement `Drop`.
62
62
unsafe impl ClassType for MyInputController {
63
63
type Super = IMKInputController ;
64
64
type Mutability = InteriorMutable ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ version.workspace = true
8
8
license.workspace = true
9
9
10
10
[target .'cfg(target_os = "macos")' .dependencies ]
11
- block = " 0.1.6 "
11
+ block2.workspace = true
12
12
core-graphics.workspace = true
13
13
core-foundation.workspace = true
14
14
cocoa.workspace = true
@@ -42,6 +42,3 @@ appkit-nsworkspace-bindings.workspace = true
42
42
tracing.workspace = true
43
43
tokio.workspace = true
44
44
nix.workspace = true
45
-
46
- [dependencies ]
47
- block2 = " 0.5.1"
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ use core_foundation::string::{
31
31
} ;
32
32
use dashmap:: DashMap ;
33
33
use flume:: Sender ;
34
+ use objc2:: mutability:: InteriorMutable ;
34
35
use objc2:: rc:: {
35
36
Allocated ,
36
37
Retained ,
@@ -41,7 +42,6 @@ use objc2::{
41
42
DeclaredClass ,
42
43
declare_class,
43
44
msg_send_id,
44
- mutability,
45
45
sel,
46
46
} ;
47
47
use objc2_app_kit:: {
@@ -213,9 +213,12 @@ pub struct Ivars {
213
213
declare_class ! {
214
214
pub struct ObserverClass ;
215
215
216
+ // - The superclass NSObject does not have any subclassing requirements.
217
+ // - Interior mutability is a safe default.
218
+ // - `ObserverClass` does not implement `Drop`.
216
219
unsafe impl ClassType for ObserverClass {
217
220
type Super = NSObject ;
218
- type Mutability = mutability :: InteriorMutable ;
221
+ type Mutability = InteriorMutable ;
219
222
const NAME : & ' static str = OBSERVER_CLASS_NAME ;
220
223
}
221
224
You can’t perform that action at this time.
0 commit comments