We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6def4ae commit 7e9ce5bCopy full SHA for 7e9ce5b
Cargo.toml
@@ -13,5 +13,5 @@ exclude = [".gitignore"]
13
14
[dependencies]
15
block = "0.1"
16
-objc = "0.1"
17
-objc_id = "0.0"
+objc = "0.2"
+objc_id = "0.1"
examples/custom_class.rs
@@ -35,7 +35,7 @@ impl INSObject for MYObject {
35
fn class() -> &'static Class {
36
MYOBJECT_REGISTER_CLASS.call_once(|| {
37
let superclass = NSObject::class();
38
- let mut decl = ClassDecl::new(superclass, "MYObject").unwrap();
+ let mut decl = ClassDecl::new("MYObject", superclass).unwrap();
39
decl.add_ivar::<u32>("_number");
40
41
// Add ObjC methods for getting and setting the number
0 commit comments