Type Alias objc_sys::id

source ·
pub type id = *mut objc_object;
Expand description

A mutable pointer to an object / instance.

Type alias provided for convenience. You’ll likely want to use one of:

  • objc2_foundation::NS[...] for when you know the class of the object you’re dealing with.
  • objc2::rc::Retained for a proper way of doing memory management.
  • objc2::runtime::AnyObject for a bit safer representation of this.