Skip to content

Commit 215f406

Browse files
committed
Rename objc_id -> objc2_id
1 parent 2691325 commit 215f406

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

objc2/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ macro_rules! sel {
6666
Sends a message to an object.
6767
6868
The first argument can be any type that dereferences to a type that implements
69-
[`Message`], like a reference, a pointer, or an `objc_id::Id` to an object.
69+
[`Message`], like a reference, a pointer, or an `objc2_id::Id` to an object.
7070
7171
The syntax is similar to the message syntax in Objective-C.
7272

objc2_foundation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ block = ["objc2_block"]
2424
[dependencies]
2525
objc2_block = { path = "../objc2_block", optional = true }
2626
objc = { path = "../objc2", version = "0.2.7" }
27-
objc_id = { path = "../objc2_id", version = "0.1.1" }
27+
objc2_id = { path = "../objc2_id" }

objc2_foundation/src/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use core::ops::{Index, Range};
77
use objc::runtime::{Class, Object};
88
use objc::{class, msg_send};
99
use objc::{Encode, Encoding};
10-
use objc_id::{Id, Owned, Ownership, ShareId, Shared};
10+
use objc2_id::{Id, Owned, Ownership, ShareId, Shared};
1111

1212
use super::{INSCopying, INSFastEnumeration, INSMutableCopying, INSObject, NSEnumerator};
1313

@@ -420,7 +420,7 @@ mod tests {
420420

421421
use super::{INSArray, INSMutableArray, NSArray, NSMutableArray};
422422
use crate::{INSObject, INSString, NSObject, NSString};
423-
use objc_id::Id;
423+
use objc2_id::Id;
424424

425425
fn sample_array(len: usize) -> Id<NSArray<NSObject>> {
426426
let mut vec = Vec::with_capacity(len);

objc2_foundation/src/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use super::{INSCopying, INSMutableCopying, INSObject, NSRange};
88
use objc::msg_send;
99
#[cfg(feature = "block")]
1010
use objc2_block::{Block, ConcreteBlock};
11-
use objc_id::Id;
11+
use objc2_id::Id;
1212

1313
pub trait INSData: INSObject {
1414
fn len(&self) -> usize {

objc2_foundation/src/dictionary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use core::ptr;
66

77
use objc::runtime::Class;
88
use objc::{class, msg_send};
9-
use objc_id::{Id, Owned, Ownership, ShareId};
9+
use objc2_id::{Id, Owned, Ownership, ShareId};
1010

1111
use super::{INSCopying, INSFastEnumeration, INSObject, NSArray, NSEnumerator, NSSharedArray};
1212

@@ -166,7 +166,7 @@ where
166166
#[cfg(test)]
167167
mod tests {
168168
use alloc::vec;
169-
use objc_id::Id;
169+
use objc2_id::Id;
170170

171171
use super::{INSDictionary, NSDictionary};
172172
use crate::{INSArray, INSObject, INSString, NSObject, NSString};

objc2_foundation/src/enumerator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::os::raw::c_ulong;
66

77
use objc::runtime::Object;
88
use objc::{msg_send, Encode, Encoding, RefEncode};
9-
use objc_id::Id;
9+
use objc2_id::Id;
1010

1111
use super::INSObject;
1212

objc2_foundation/src/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use core::any::Any;
33
use objc::msg_send;
44
use objc::runtime::{Class, BOOL, NO};
55
use objc::Message;
6-
use objc_id::{Id, ShareId};
6+
use objc2_id::{Id, ShareId};
77

88
use super::NSString;
99

objc2_foundation/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use core::str;
55
use std::os::raw::c_char;
66

77
use objc::msg_send;
8-
use objc_id::{Id, ShareId};
8+
use objc2_id::{Id, ShareId};
99

1010
use super::INSObject;
1111

objc2_foundation/src/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::os::raw::c_char;
1010
use objc::runtime::Class;
1111
use objc::Encode;
1212
use objc::{class, msg_send};
13-
use objc_id::Id;
13+
use objc2_id::Id;
1414

1515
use super::{INSCopying, INSObject};
1616

objc2_id/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "objc_id"
2+
name = "objc2_id"
33
version = "0.1.1" # Remember to update html_root_url in lib.rs
44
authors = ["Steven Sheldon", "Mads Marquart <[email protected]>"]
55
edition = "2018"
@@ -13,7 +13,7 @@ categories = [
1313
]
1414
readme = "README.md"
1515
repository = "https://github.com/madsmtm/objc2"
16-
documentation = "https://docs.rs/objc_id/"
16+
documentation = "https://docs.rs/objc2_id/"
1717
license = "MIT"
1818

1919
[dependencies]

0 commit comments

Comments
 (0)