Skip to content

Commit 7e9ce5b

Browse files
committed
Updated objc dependency to 0.2 and objc_id to 0.1.
1 parent 6def4ae commit 7e9ce5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ exclude = [".gitignore"]
1313

1414
[dependencies]
1515
block = "0.1"
16-
objc = "0.1"
17-
objc_id = "0.0"
16+
objc = "0.2"
17+
objc_id = "0.1"

examples/custom_class.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl INSObject for MYObject {
3535
fn class() -> &'static Class {
3636
MYOBJECT_REGISTER_CLASS.call_once(|| {
3737
let superclass = NSObject::class();
38-
let mut decl = ClassDecl::new(superclass, "MYObject").unwrap();
38+
let mut decl = ClassDecl::new("MYObject", superclass).unwrap();
3939
decl.add_ivar::<u32>("_number");
4040

4141
// Add ObjC methods for getting and setting the number

0 commit comments

Comments
 (0)