NSObjectProtocol class abstract

Stands for @protocol NSObject in iOS and macOS.

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

Implementers

Constructors

NSObjectProtocol()

Properties

debugDescription String
Returns a string that describes the contents of the receiver for presentation in the debugger.
no setter
description String
Returns a string that describes the contents of the receiver.
no setter
hash int
Returns an integer that can be used as a table address in a hash table structure.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superclass Class
Returns the class object for the receiver’s superclass.
no setter

Methods

conforms({required Protocol to}) bool
Returns a Boolean value that indicates whether the receiver conforms to a given protocol.
isEqual(NSObjectProtocol object) bool
Returns a Boolean value that indicates whether the receiver and a given object are equal.
isKind({required Class of}) 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.
isMember({required Class of}) bool
Returns a Boolean value that indicates whether the receiver is an instance of a given class.
isProxy() bool
Returns a Boolean value that indicates whether the receiver does not descend froms NSObject.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSync<T>(SEL selector, {List args}) → T
Sends a specified message to the receiver and returns the result of the message.
responds({required SEL to}) bool
Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.
self() NSObjectProtocol
Returns the receiver.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited