Trait PNSObject

Source
pub trait PNSObject {
Show 17 methods // Required methods fn m_class<'a>() -> &'a Class; fn m_self(&self) -> id; // Provided methods fn m_new() -> Self where Self: Sized + FromId { ... } fn m_alloc() -> Self where Self: Sized + FromId { ... } fn m_initialize() { ... } fn ip_superclass<'a>() -> Option<&'a Class> { ... } fn m_is_equal(&self, object: &Self) -> bool { ... } fn p_hash(&self) -> UInt { ... } fn m_is_kind_of_class(&self, class: Class) -> bool { ... } fn m_is_member_of_class(&self, class: Class) -> bool { ... } fn m_responds_to_selector(&self, selector: Sel) -> bool { ... } fn m_conforms_to_protocol(&self, protocol: Protocol) -> bool { ... } fn p_description(&self) -> NSString { ... } fn p_debug_description(&self) -> NSString { ... } fn m_perform_selector(&self, selector: Sel) -> id { ... } fn m_perform_selector_with_object( &self, selector: Sel, with_object: id, ) -> id { ... } fn m_is_proxy(&self) -> bool { ... }
}
Expand description

The group of methods that are fundamental to all Objective-C objects.

Required Methods§

Source

fn m_class<'a>() -> &'a Class

Returns the class object for the receiver’s class.

Source

fn m_self(&self) -> id

Returns the receiver.

Provided Methods§

Source

fn m_new() -> Self
where Self: Sized + FromId,

Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object.

Source

fn m_alloc() -> Self
where Self: Sized + FromId,

Returns a new instance of the receiving class.

Source

fn m_initialize()

Initializes the class before it receives its first message.

Source

fn ip_superclass<'a>() -> Option<&'a Class>

Returns the class object for the receiver’s superclass.

Source

fn m_is_equal(&self, object: &Self) -> bool

Returns a Boolean value that indicates whether the receiver and a given object are equal.

Source

fn p_hash(&self) -> UInt

Returns an integer that can be used as a table address in a hash table structure.

Source

fn m_is_kind_of_class(&self, class: Class) -> bool

Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits from that class.

Source

fn m_is_member_of_class(&self, class: Class) -> bool

Returns a Boolean value that indicates whether the receiver is an instance of a given class.

Source

fn m_responds_to_selector(&self, selector: Sel) -> bool

Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.

Source

fn m_conforms_to_protocol(&self, protocol: Protocol) -> bool

Returns a Boolean value that indicates whether the receiver conforms to a given protocol.

Source

fn p_description(&self) -> NSString

A textual representation of the receiver.

Source

fn p_debug_description(&self) -> NSString

A textual representation of the receiver to use with a debugger.

Source

fn m_perform_selector(&self, selector: Sel) -> id

Sends a specified message to the receiver and returns the result of the message.

Source

fn m_perform_selector_with_object(&self, selector: Sel, with_object: id) -> id

Sends a message to the receiver with an object as the argument.

Source

fn m_is_proxy(&self) -> bool

Returns a Boolean value that indicates whether the receiver does not descend from NSObject.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PNSObject for NSApplication<'_>

Source§

impl PNSObject for NSButton

Source§

impl PNSObject for NSColor

Source§

impl PNSObject for NSColorSpace

Source§

impl PNSObject for NSControl

Source§

impl PNSObject for NSDockTile

Source§

impl PNSObject for NSImage

Source§

impl PNSObject for rust_macios::appkit::NSLayoutAnchor

Source§

impl PNSObject for rust_macios::appkit::NSLayoutConstraint

Source§

impl PNSObject for rust_macios::appkit::NSLayoutXAxisAnchor

Source§

impl PNSObject for rust_macios::appkit::NSLayoutYAxisAnchor

Source§

impl PNSObject for NSMenu

Source§

impl PNSObject for NSMenuItem

Source§

impl PNSObject for NSNib

Source§

impl PNSObject for NSPasteboard

Source§

impl PNSObject for NSPasteboardItem

Source§

impl PNSObject for NSPopover

Source§

impl PNSObject for NSResponder

Source§

impl PNSObject for NSRunningApplication

Source§

impl PNSObject for NSScreen

Source§

impl PNSObject for NSStatusBar

Source§

impl PNSObject for NSStatusBarButton

Source§

impl PNSObject for NSStatusItem

Source§

impl PNSObject for NSStoryboard

Source§

impl PNSObject for NSTextField

Source§

impl PNSObject for NSToolbar

Source§

impl PNSObject for NSView

Source§

impl PNSObject for NSViewController

Source§

impl PNSObject for BGAppRefreshTask

Source§

impl PNSObject for BGAppRefreshTaskRequest

Source§

impl PNSObject for BGProcessingTask

Source§

impl PNSObject for BGProcessingTaskRequest

Source§

impl PNSObject for BGTask

Source§

impl PNSObject for BGTaskRequest

Source§

impl PNSObject for BGTaskScheduler

Source§

impl PNSObject for CNChangeHistoryAddContactEvent

Source§

impl PNSObject for CNChangeHistoryAddGroupEvent

Source§

impl PNSObject for CNChangeHistoryEvent

Source§

impl PNSObject for CNChangeHistoryFetchRequest

Source§

impl PNSObject for CNContact

Source§

impl PNSObject for CNContactFetchRequest

Source§

impl PNSObject for CNContactFormatter

Source§

impl PNSObject for CNContactProperty

Source§

impl PNSObject for CNContactRelation

Source§

impl PNSObject for CNContactStore

Source§

impl PNSObject for CNContainer

Source§

impl PNSObject for CNFetchRequest

Source§

impl PNSObject for CNGroup

Source§

impl PNSObject for CNInstantMessageAddress

Source§

impl PNSObject for CNMutableContact

Source§

impl PNSObject for CNMutableGroup

Source§

impl PNSObject for CNMutablePostalAddress

Source§

impl PNSObject for CNPhoneNumber

Source§

impl PNSObject for CNPostalAddress

Source§

impl PNSObject for CNSaveRequest

Source§

impl PNSObject for CNSocialProfile

Source§

impl PNSObject for CGFunction

Source§

impl PNSObject for CLRegion

Source§

impl PNSObject for MLModel

Source§

impl PNSObject for NSAttributedString

Source§

impl PNSObject for NSAutoreleasePool

Source§

impl PNSObject for NSBundle

Source§

impl PNSObject for NSCharacterSet

Source§

impl PNSObject for NSCoder

Source§

impl PNSObject for NSData

Source§

impl PNSObject for NSDate

Source§

impl PNSObject for NSDateComponents

Source§

impl PNSObject for NSDecimalNumber

Source§

impl PNSObject for NSDecimalNumberHandler

Source§

impl PNSObject for NSError

Source§

impl PNSObject for NSFileWrapper

Source§

impl PNSObject for NSFormatter

Source§

impl PNSObject for NSIndexSet

Source§

impl PNSObject for NSLocale

Source§

impl PNSObject for NSMutableString

Source§

impl PNSObject for NSNotification

Source§

impl PNSObject for NSNull

Source§

impl PNSObject for NSNumber

Source§

impl PNSObject for NSNumberFormatter

Source§

impl PNSObject for NSOrthography

Source§

impl PNSObject for NSPredicate

Source§

impl PNSObject for NSProcessInfo

Source§

impl PNSObject for NSSpellServer

Source§

impl PNSObject for NSString

Source§

impl PNSObject for NSTextCheckingResult

Source§

impl PNSObject for NSURL

Source§

impl PNSObject for NSUUID

Source§

impl PNSObject for NLEmbedding

Source§

impl PNSObject for NLGazetteer

Source§

impl PNSObject for NLLanguageRecognizer

Source§

impl PNSObject for NLModel

Source§

impl PNSObject for NLModelConfiguration

Source§

impl PNSObject for NLTagger

Source§

impl PNSObject for NLTokenizer

Source§

impl PNSObject for rust_macios::uikit::NSLayoutAnchor

Source§

impl PNSObject for rust_macios::uikit::NSLayoutConstraint

Source§

impl PNSObject for rust_macios::uikit::NSLayoutXAxisAnchor

Source§

impl PNSObject for rust_macios::uikit::NSLayoutYAxisAnchor

Source§

impl PNSObject for UIScene

Source§

impl PNSObject for UNCalendarNotificationTrigger

Source§

impl PNSObject for UNLocationNotificationTrigger

Source§

impl PNSObject for UNMutableNotificationContent

Source§

impl PNSObject for UNNotification

Source§

impl PNSObject for UNNotificationAction

Source§

impl PNSObject for UNNotificationActionIcon

Source§

impl PNSObject for UNNotificationAttachment

Source§

impl PNSObject for UNNotificationCategory

Source§

impl PNSObject for UNNotificationContent

Source§

impl PNSObject for UNNotificationContentProviding

Source§

impl PNSObject for UNNotificationRequest

Source§

impl PNSObject for UNNotificationResponse

Source§

impl PNSObject for UNNotificationServiceExtension

Source§

impl PNSObject for UNNotificationSettings

Source§

impl PNSObject for UNNotificationSound

Source§

impl PNSObject for UNNotificationTrigger

Source§

impl PNSObject for UNPushNotificationTrigger

Source§

impl PNSObject for UNTextInputNotificationAction

Source§

impl PNSObject for UNTextInputNotificationResponse

Source§

impl PNSObject for UNTimeIntervalNotificationTrigger

Source§

impl PNSObject for UNUserNotificationCenter

Source§

impl PNSObject for NSValue

Source§

impl<K, V> PNSObject for NSDictionary<K, V>

Source§

impl<K, V> PNSObject for NSMutableDictionary<K, V>

Source§

impl<ObjectType> PNSObject for NSEnumerator<ObjectType>

Source§

impl<T> PNSObject for NSWindow<T>

Source§

impl<T> PNSObject for NSArray<T>

Source§

impl<T> PNSObject for NSMutableArray<T>

Source§

impl<T> PNSObject for NSSet<T>

Source§

impl<ValueType> PNSObject for CNFetchResult<ValueType>

Source§

impl<ValueType> PNSObject for CNLabeledValue<ValueType>