rust_macios/contacts/cn_mutable_group.rs
1use objc::{msg_send, sel, sel_impl};
2
3use crate::{foundation::NSString, object, objective_c_runtime::macros::interface_impl};
4
5use super::ICNGroup;
6
7object! {
8 /// A mutable object that represents a group of contacts.
9 unsafe pub struct CNMutableGroup;
10}
11
12impl ICNGroup for CNMutableGroup {}
13
14#[interface_impl(CNGroup)]
15impl CNMutableGroup {
16 /// The name of the group.
17 #[property]
18 pub fn set_name(&mut self, name: NSString) {
19 unsafe { msg_send![self.m_self(), setName: name] }
20 }
21}