Trait NSObjectProtocol

Source
pub unsafe trait NSObjectProtocol {
    // Provided methods
    fn isEqual(&self, other: Option<&AnyObject>) -> bool
       where Self: Sized + Message { ... }
    fn hash(&self) -> usize
       where Self: Sized + Message { ... }
    fn isKindOfClass(&self, cls: &AnyClass) -> bool
       where Self: Sized + Message { ... }
    fn is_kind_of<T>(&self) -> bool
       where T: ClassType,
             Self: Sized + Message { ... }
    fn isMemberOfClass(&self, cls: &AnyClass) -> bool
       where Self: Sized + Message { ... }
    fn respondsToSelector(&self, aSelector: Sel) -> bool
       where Self: Sized + Message { ... }
    fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
       where Self: Sized + Message { ... }
    fn description(&self) -> Retained<NSObject>
       where Self: Sized + Message { ... }
    fn debugDescription(&self) -> Retained<NSObject>
       where Self: Sized + Message { ... }
    fn isProxy(&self) -> bool
       where Self: Sized + Message { ... }
    fn retainCount(&self) -> usize
       where Self: Sized + Message { ... }
}
Expand description

The methods that are fundamental to most Objective-C objects.

This represents the NSObject protocol.

You should rarely need to use this for anything other than as a trait bound in extern_protocol!, to allow your protocol to implement Debug Hash, PartialEq and Eq.

This trait is exported under objc2_foundation::NSObjectProtocol, you probably want to use that path instead.

§Safety

Like with other protocols, the type must represent a class that implements the NSObject protocol.

Provided Methods§

Source

fn isEqual(&self, other: Option<&AnyObject>) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object.

Most objects that implement NSObjectProtocol also implements the PartialEq trait. If the objects you are comparing are of the same type, you likely want to use that instead.

See Apple’s documentation for details.

Source

fn hash(&self) -> usize
where Self: Sized + Message,

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

Most objects that implement NSObjectProtocol also implements the Hash trait, you likely want to use that instead.

See Apple’s documentation for details.

Source

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses.

See AnyObject::downcast_ref or Retained::downcast if your intention is to use this to cast an object to another, and see Apple’s documentation for more details on what you may (and what you may not) do with this information in general.

Source

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

👎Deprecated: use isKindOfClass directly, or cast your objects with AnyObject::downcast_ref

Check if the object is an instance of the class type, or one of its subclasses.

See isKindOfClass for details.

Source

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses.

Note that this is rarely what you want, the specific class of an object is considered a private implementation detail. Use isKindOfClass instead to check whether an object is an instance of a given class.

See Apple’s documentation for more details.

Source

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector.

See Apple’s documentation for more details.

If using this for availability checking, you might want to consider using the available! macro instead, as it is often more performant than this runtime check.

Source

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol.

See Apple’s documentation for details.

Source

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object.

The returned class is NSString, but since that is defined in objc2-foundation, and NSObjectProtocol is defined in objc2, the declared return type is unfortunately restricted to be NSObject. It is always safe to cast the return value of this to NSString.

You might want to use the Debug impl of the object instead, or if the object implements Display, the to_string method.

§Example
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSObjectProtocol, NSString};

// SAFETY: Descriptions are always `NSString`.
let desc: Retained<NSString> = unsafe { Retained::cast_unchecked(obj.description()) };
println!("{desc:?}");
Source

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging.

Like with description, the return type of this is always NSString.

LLVM’s po command uses this property to create a textual representation of the object. The default implementation returns the same value as description. Override either to provide custom object descriptions.

Source

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject.

See Apple’s documentation for details.

§Example
use objc2::runtime::{NSObject, NSObjectProtocol};

let obj = NSObject::new();
assert!(!obj.isProxy());
Source

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object.

This can rarely be useful when debugging memory management issues, though beware that in most real-world scenarios, your object may be retained by several autorelease pools, especially when debug assertions are enabled, so this value may not represent what you’d expect.

§Example
use objc2::ClassType;
use objc2::runtime::{NSObject, NSObjectProtocol};

let obj = NSObject::new();
assert_eq!(obj.retainCount(), 1);
let obj2 = obj.clone();
assert_eq!(obj.retainCount(), 2);
drop(obj2);
assert_eq!(obj.retainCount(), 1);

Trait Implementations§

Source§

impl ProtocolType for dyn NSObjectProtocol

Source§

const NAME: &'static str = "NSObject"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSObjectProtocol

Source§

impl<T> ImplementedBy<T> for dyn NSObjectProtocol + Send

Source§

impl<T> ImplementedBy<T> for dyn NSObjectProtocol + Send + Sync

Source§

impl<T> ImplementedBy<T> for dyn NSObjectProtocol + Sync

Implementors§

Source§

impl NSObjectProtocol for NSAffineTransform

Available on crate feature NSAffineTransform only.
Source§

impl NSObjectProtocol for NSAppleEventDescriptor

Available on crate feature NSAppleEventDescriptor only.
Source§

impl NSObjectProtocol for NSAppleEventManager

Available on crate feature NSAppleEventManager only.
Source§

impl NSObjectProtocol for NSAppleScript

Available on crate feature NSAppleScript only.
Source§

impl NSObjectProtocol for NSArchiver

Available on crate feature NSArchiver only.
Source§

impl NSObjectProtocol for NSAssertionHandler

Available on crate feature NSException only.
Source§

impl NSObjectProtocol for NSAttributedString

Available on crate feature NSAttributedString only.
Source§

impl NSObjectProtocol for NSAttributedStringMarkdownParsingOptions

Available on crate feature NSAttributedString only.
Source§

impl NSObjectProtocol for NSAttributedStringMarkdownSourcePosition

Available on crate feature NSAttributedString only.
Source§

impl NSObjectProtocol for NSAutoreleasePool

Available on crate feature NSAutoreleasePool only.
Source§

impl NSObjectProtocol for NSBackgroundActivityScheduler

Available on crate feature NSBackgroundActivityScheduler only.
Source§

impl NSObjectProtocol for NSBlockOperation

Available on crate feature NSOperation only.
Source§

impl NSObjectProtocol for NSBundle

Available on crate feature NSBundle only.
Source§

impl NSObjectProtocol for NSBundleResourceRequest

Available on crate feature NSBundle only.
Source§

impl NSObjectProtocol for NSByteCountFormatter

Available on crate feature NSByteCountFormatter only.
Source§

impl NSObjectProtocol for NSCachedURLResponse

Available on crate feature NSURLCache only.
Source§

impl NSObjectProtocol for NSCalendar

Available on crate feature NSCalendar only.
Source§

impl NSObjectProtocol for NSCalendarDate

Available on crate feature NSCalendarDate only.
Source§

impl NSObjectProtocol for NSCharacterSet

Available on crate feature NSCharacterSet only.
Source§

impl NSObjectProtocol for NSClassDescription

Available on crate feature NSClassDescription only.
Source§

impl NSObjectProtocol for NSCloneCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSCloseCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSCoder

Available on crate feature NSCoder only.
Source§

impl NSObjectProtocol for NSComparisonPredicate

Available on crate feature NSComparisonPredicate only.
Source§

impl NSObjectProtocol for NSCompoundPredicate

Available on crate feature NSCompoundPredicate only.
Source§

impl NSObjectProtocol for NSCondition

Available on crate feature NSLock only.
Source§

impl NSObjectProtocol for NSConditionLock

Available on crate feature NSLock only.
Source§

impl NSObjectProtocol for NSConnection

Available on crate feature NSConnection only.
Source§

impl NSObjectProtocol for NSConstantString

Available on crate feature NSString only.
Source§

impl NSObjectProtocol for NSCountCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSCreateCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSData

Available on crate feature NSData only.
Source§

impl NSObjectProtocol for NSDataDetector

Available on crate feature NSRegularExpression only.
Source§

impl NSObjectProtocol for NSDate

Available on crate feature NSDate only.
Source§

impl NSObjectProtocol for NSDateComponents

Available on crate feature NSCalendar only.
Source§

impl NSObjectProtocol for NSDateComponentsFormatter

Available on crate feature NSDateComponentsFormatter only.
Source§

impl NSObjectProtocol for NSDateFormatter

Available on crate feature NSDateFormatter only.
Source§

impl NSObjectProtocol for NSDateInterval

Available on crate feature NSDateInterval only.
Source§

impl NSObjectProtocol for NSDateIntervalFormatter

Available on crate feature NSDateIntervalFormatter only.
Source§

impl NSObjectProtocol for NSDecimalNumber

Available on crate feature NSDecimalNumber only.
Source§

impl NSObjectProtocol for NSDecimalNumberHandler

Available on crate feature NSDecimalNumber only.
Source§

impl NSObjectProtocol for NSDeleteCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSDimension

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSDistantObject

Available on crate feature NSDistantObject only.
Source§

impl NSObjectProtocol for NSDistantObjectRequest

Available on crate feature NSConnection only.
Source§

impl NSObjectProtocol for NSDistributedLock

Available on crate feature NSDistributedLock only.
Source§

impl NSObjectProtocol for NSDistributedNotificationCenter

Available on crate feature NSDistributedNotificationCenter only.
Source§

impl NSObjectProtocol for NSEnergyFormatter

Available on crate feature NSEnergyFormatter only.
Source§

impl NSObjectProtocol for NSError

Available on crate feature NSError only.
Source§

impl NSObjectProtocol for NSException

Available on crate feature NSException only.
Source§

impl NSObjectProtocol for NSExistsCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSExpression

Available on crate feature NSExpression only.
Source§

impl NSObjectProtocol for NSExtensionContext

Available on crate feature NSExtensionContext only.
Source§

impl NSObjectProtocol for NSExtensionItem

Available on crate feature NSExtensionItem only.
Source§

impl NSObjectProtocol for NSFileAccessIntent

Available on crate feature NSFileCoordinator only.
Source§

impl NSObjectProtocol for NSFileCoordinator

Available on crate feature NSFileCoordinator only.
Source§

impl NSObjectProtocol for NSFileHandle

Available on crate feature NSFileHandle only.
Source§

impl NSObjectProtocol for NSFileManager

Available on crate feature NSFileManager only.
Source§

impl NSObjectProtocol for NSFileProviderService

Available on crate feature NSFileManager only.
Source§

impl NSObjectProtocol for NSFileSecurity

Available on crate feature NSURL only.
Source§

impl NSObjectProtocol for NSFileVersion

Available on crate feature NSFileVersion only.
Source§

impl NSObjectProtocol for NSFileWrapper

Available on crate feature NSFileWrapper only.
Source§

impl NSObjectProtocol for NSFormatter

Available on crate feature NSFormatter only.
Source§

impl NSObjectProtocol for NSGarbageCollector

Available on crate feature NSGarbageCollector only.
Source§

impl NSObjectProtocol for NSGetCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSHTTPCookie

Available on crate feature NSHTTPCookie only.
Source§

impl NSObjectProtocol for NSHTTPCookieStorage

Available on crate feature NSHTTPCookieStorage only.
Source§

impl NSObjectProtocol for NSHTTPURLResponse

Available on crate feature NSURLResponse only.
Source§

impl NSObjectProtocol for NSHost

Available on crate feature NSHost only.
Source§

impl NSObjectProtocol for NSISO8601DateFormatter

Available on crate feature NSISO8601DateFormatter only.
Source§

impl NSObjectProtocol for NSIndexPath

Available on crate feature NSIndexPath only.
Source§

impl NSObjectProtocol for NSIndexSet

Available on crate feature NSIndexSet only.
Source§

impl NSObjectProtocol for NSIndexSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSInflectionRule

Available on crate feature NSInflectionRule only.
Source§

impl NSObjectProtocol for NSInflectionRuleExplicit

Available on crate feature NSInflectionRule only.
Source§

impl NSObjectProtocol for NSInputStream

Available on crate feature NSStream only.
Source§

impl NSObjectProtocol for NSInvocation

Available on crate feature NSInvocation only.
Source§

impl NSObjectProtocol for NSInvocationOperation

Available on crate feature NSOperation only.
Source§

impl NSObjectProtocol for NSItemProvider

Available on crate feature NSItemProvider only.
Source§

impl NSObjectProtocol for NSJSONSerialization

Available on crate feature NSJSONSerialization only.
Source§

impl NSObjectProtocol for NSKeyValueSharedObservers

Available on crate feature NSKeyValueSharedObservers only.
Source§

impl NSObjectProtocol for NSKeyValueSharedObserversSnapshot

Available on crate feature NSKeyValueSharedObservers only.
Source§

impl NSObjectProtocol for NSKeyedArchiver

Available on crate feature NSKeyedArchiver only.
Source§

impl NSObjectProtocol for NSKeyedUnarchiver

Available on crate feature NSKeyedArchiver only.
Source§

impl NSObjectProtocol for NSLengthFormatter

Available on crate feature NSLengthFormatter only.
Source§

impl NSObjectProtocol for NSLinguisticTagger

Available on crate feature NSLinguisticTagger only.
Source§

impl NSObjectProtocol for NSListFormatter

Available on crate feature NSListFormatter only.
Source§

impl NSObjectProtocol for NSLocale

Available on crate feature NSLocale only.
Source§

impl NSObjectProtocol for NSLocalizedNumberFormatRule

Available on crate feature NSLocalizedNumberFormatRule only.
Source§

impl NSObjectProtocol for NSLock

Available on crate feature NSLock only.
Source§

impl NSObjectProtocol for NSLogicalTest

Available on crate feature NSScriptWhoseTests only.
Source§

impl NSObjectProtocol for NSMachBootstrapServer

Available on crate feature NSPortNameServer only.
Source§

impl NSObjectProtocol for NSMachPort

Available on crate feature NSPort only.
Source§

impl NSObjectProtocol for NSMassFormatter

Available on crate feature NSMassFormatter only.
Source§

impl NSObjectProtocol for NSMeasurementFormatter

Available on crate feature NSMeasurementFormatter only.
Source§

impl NSObjectProtocol for NSMessagePort

Available on crate feature NSPort only.
Source§

impl NSObjectProtocol for NSMessagePortNameServer

Available on crate feature NSPortNameServer only.
Source§

impl NSObjectProtocol for NSMetadataItem

Available on crate feature NSMetadata only.
Source§

impl NSObjectProtocol for NSMetadataQuery

Available on crate feature NSMetadata only.
Source§

impl NSObjectProtocol for NSMetadataQueryAttributeValueTuple

Available on crate feature NSMetadata only.
Source§

impl NSObjectProtocol for NSMetadataQueryResultGroup

Available on crate feature NSMetadata only.
Source§

impl NSObjectProtocol for NSMethodSignature

Available on crate feature NSMethodSignature only.
Source§

impl NSObjectProtocol for NSMiddleSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSMorphology

Available on crate feature NSMorphology only.
Source§

impl NSObjectProtocol for NSMorphologyCustomPronoun

Available on crate feature NSMorphology only.
Source§

impl NSObjectProtocol for NSMorphologyPronoun

Available on crate feature NSMorphology only.
Source§

impl NSObjectProtocol for NSMoveCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSMutableAttributedString

Available on crate feature NSAttributedString only.
Source§

impl NSObjectProtocol for NSMutableCharacterSet

Available on crate feature NSCharacterSet only.
Source§

impl NSObjectProtocol for NSMutableData

Available on crate feature NSData only.
Source§

impl NSObjectProtocol for NSMutableIndexSet

Available on crate feature NSIndexSet only.
Source§

impl NSObjectProtocol for NSMutableString

Available on crate feature NSString only.
Source§

impl NSObjectProtocol for NSMutableURLRequest

Available on crate feature NSURLRequest only.
Source§

impl NSObjectProtocol for NSNameSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSNetService

Available on crate feature NSNetServices only.
Source§

impl NSObjectProtocol for NSNetServiceBrowser

Available on crate feature NSNetServices only.
Source§

impl NSObjectProtocol for NSNotification

Available on crate feature NSNotification only.
Source§

impl NSObjectProtocol for NSNotificationCenter

Available on crate feature NSNotification only.
Source§

impl NSObjectProtocol for NSNotificationQueue

Available on crate feature NSNotificationQueue only.
Source§

impl NSObjectProtocol for NSNull

Available on crate feature NSNull only.
Source§

impl NSObjectProtocol for NSNumber

Available on crate feature NSValue only.
Source§

impl NSObjectProtocol for NSNumberFormatter

Available on crate feature NSNumberFormatter only.
Source§

impl NSObjectProtocol for NSObject

Source§

impl NSObjectProtocol for NSOperation

Available on crate feature NSOperation only.
Source§

impl NSObjectProtocol for NSOperationQueue

Available on crate feature NSOperation only.
Source§

impl NSObjectProtocol for NSOrthography

Available on crate feature NSOrthography only.
Source§

impl NSObjectProtocol for NSOutputStream

Available on crate feature NSStream only.
Source§

impl NSObjectProtocol for NSPersonNameComponents

Available on crate feature NSPersonNameComponents only.
Source§

impl NSObjectProtocol for NSPersonNameComponentsFormatter

Available on crate feature NSPersonNameComponentsFormatter only.
Source§

impl NSObjectProtocol for NSPipe

Available on crate feature NSFileHandle only.
Source§

impl NSObjectProtocol for NSPointerArray

Available on crate feature NSPointerArray only.
Source§

impl NSObjectProtocol for NSPointerFunctions

Available on crate feature NSPointerFunctions only.
Source§

impl NSObjectProtocol for NSPort

Available on crate feature NSPort only.
Source§

impl NSObjectProtocol for NSPortCoder

Available on crate feature NSPortCoder only.
Source§

impl NSObjectProtocol for NSPortMessage

Available on crate feature NSPortMessage only.
Source§

impl NSObjectProtocol for NSPortNameServer

Available on crate feature NSPortNameServer only.
Source§

impl NSObjectProtocol for NSPositionalSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSPredicate

Available on crate feature NSPredicate only.
Source§

impl NSObjectProtocol for NSPresentationIntent

Available on crate feature NSAttributedString only.
Source§

impl NSObjectProtocol for NSProcessInfo

Available on crate feature NSProcessInfo only.
Source§

impl NSObjectProtocol for NSProgress

Available on crate feature NSProgress only.
Source§

impl NSObjectProtocol for NSPropertyListSerialization

Available on crate feature NSPropertyList only.
Source§

impl NSObjectProtocol for NSPropertySpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSProtocolChecker

Available on crate feature NSProtocolChecker only.
Source§

impl NSObjectProtocol for NSProxy

Source§

impl NSObjectProtocol for NSPurgeableData

Available on crate feature NSData only.
Source§

impl NSObjectProtocol for NSQuitCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSRandomSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSRangeSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSRecursiveLock

Available on crate feature NSLock only.
Source§

impl NSObjectProtocol for NSRegularExpression

Available on crate feature NSRegularExpression only.
Source§

impl NSObjectProtocol for NSRelativeDateTimeFormatter

Available on crate feature NSRelativeDateTimeFormatter only.
Source§

impl NSObjectProtocol for NSRelativeSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSRunLoop

Available on crate feature NSRunLoop only.
Source§

impl NSObjectProtocol for NSScanner

Available on crate feature NSScanner only.
Source§

impl NSObjectProtocol for NSScriptClassDescription

Available on crate feature NSScriptClassDescription only.
Source§

impl NSObjectProtocol for NSScriptCoercionHandler

Available on crate feature NSScriptCoercionHandler only.
Source§

impl NSObjectProtocol for NSScriptCommand

Available on crate feature NSScriptCommand only.
Source§

impl NSObjectProtocol for NSScriptCommandDescription

Available on crate feature NSScriptCommandDescription only.
Source§

impl NSObjectProtocol for NSScriptExecutionContext

Available on crate feature NSScriptExecutionContext only.
Source§

impl NSObjectProtocol for NSScriptObjectSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSScriptSuiteRegistry

Available on crate feature NSScriptSuiteRegistry only.
Source§

impl NSObjectProtocol for NSScriptWhoseTest

Available on crate feature NSScriptWhoseTests only.
Source§

impl NSObjectProtocol for NSSecureUnarchiveFromDataTransformer

Available on crate feature NSValueTransformer only.
Source§

impl NSObjectProtocol for NSSetCommand

Available on crate feature NSScriptStandardSuiteCommands only.
Source§

impl NSObjectProtocol for NSSimpleCString

Available on crate feature NSString only.
Source§

impl NSObjectProtocol for NSSocketPort

Available on crate feature NSPort only.
Source§

impl NSObjectProtocol for NSSocketPortNameServer

Available on crate feature NSPortNameServer only.
Source§

impl NSObjectProtocol for NSSortDescriptor

Available on crate feature NSSortDescriptor only.
Source§

impl NSObjectProtocol for NSSpecifierTest

Available on crate feature NSScriptWhoseTests only.
Source§

impl NSObjectProtocol for NSSpellServer

Available on crate feature NSSpellServer only.
Source§

impl NSObjectProtocol for NSStream

Available on crate feature NSStream only.
Source§

impl NSObjectProtocol for NSString

Available on crate feature NSString only.
Source§

impl NSObjectProtocol for NSTask

Available on crate feature NSTask only.
Source§

impl NSObjectProtocol for NSTermOfAddress

Available on crate feature NSTermOfAddress only.
Source§

impl NSObjectProtocol for NSTextCheckingResult

Available on crate feature NSTextCheckingResult only.
Source§

impl NSObjectProtocol for NSThread

Available on crate feature NSThread only.
Source§

impl NSObjectProtocol for NSTimeZone

Available on crate feature NSTimeZone only.
Source§

impl NSObjectProtocol for NSTimer

Available on crate feature NSTimer only.
Source§

impl NSObjectProtocol for NSURL

Available on crate feature NSURL only.
Source§

impl NSObjectProtocol for NSURLAuthenticationChallenge

Available on crate feature NSURLAuthenticationChallenge only.
Source§

impl NSObjectProtocol for NSURLCache

Available on crate feature NSURLCache only.
Source§

impl NSObjectProtocol for NSURLComponents

Available on crate feature NSURL only.
Source§

impl NSObjectProtocol for NSURLConnection

Available on crate feature NSURLConnection only.
Source§

impl NSObjectProtocol for NSURLCredential

Available on crate feature NSURLCredential only.
Source§

impl NSObjectProtocol for NSURLCredentialStorage

Available on crate feature NSURLCredentialStorage only.
Source§

impl NSObjectProtocol for NSURLDownload

Available on crate feature NSURLDownload only.
Source§

impl NSObjectProtocol for NSURLHandle

Available on crate feature NSURLHandle only.
Source§

impl NSObjectProtocol for NSURLProtectionSpace

Available on crate feature NSURLProtectionSpace only.
Source§

impl NSObjectProtocol for NSURLProtocol

Available on crate feature NSURLProtocol only.
Source§

impl NSObjectProtocol for NSURLQueryItem

Available on crate feature NSURL only.
Source§

impl NSObjectProtocol for NSURLRequest

Available on crate feature NSURLRequest only.
Source§

impl NSObjectProtocol for NSURLResponse

Available on crate feature NSURLResponse only.
Source§

impl NSObjectProtocol for NSURLSession

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionConfiguration

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionDataTask

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionDownloadTask

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionStreamTask

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionTask

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionTaskMetrics

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionTaskTransactionMetrics

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionUploadTask

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionWebSocketMessage

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSURLSessionWebSocketTask

Available on crate feature NSURLSession only.
Source§

impl NSObjectProtocol for NSUUID

Available on crate feature NSUUID only.
Source§

impl NSObjectProtocol for NSUbiquitousKeyValueStore

Available on crate feature NSUbiquitousKeyValueStore only.
Source§

impl NSObjectProtocol for NSUnarchiver

Available on crate feature NSArchiver only.
Source§

impl NSObjectProtocol for NSUndoManager

Available on crate feature NSUndoManager only.
Source§

impl NSObjectProtocol for NSUniqueIDSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSUnit

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitAcceleration

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitAngle

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitArea

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitConcentrationMass

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitConverter

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitConverterLinear

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitDispersion

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitDuration

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitElectricCharge

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitElectricCurrent

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitElectricPotentialDifference

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitElectricResistance

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitEnergy

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitFrequency

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitFuelEfficiency

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitIlluminance

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitInformationStorage

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitLength

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitMass

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitPower

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitPressure

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitSpeed

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitTemperature

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUnitVolume

Available on crate feature NSUnit only.
Source§

impl NSObjectProtocol for NSUserActivity

Available on crate feature NSUserActivity only.
Source§

impl NSObjectProtocol for NSUserAppleScriptTask

Available on crate feature NSUserScriptTask only.
Source§

impl NSObjectProtocol for NSUserAutomatorTask

Available on crate feature NSUserScriptTask only.
Source§

impl NSObjectProtocol for NSUserDefaults

Available on crate feature NSUserDefaults only.
Source§

impl NSObjectProtocol for NSUserNotification

Available on crate feature NSUserNotification only.
Source§

impl NSObjectProtocol for NSUserNotificationAction

Available on crate feature NSUserNotification only.
Source§

impl NSObjectProtocol for NSUserNotificationCenter

Available on crate feature NSUserNotification only.
Source§

impl NSObjectProtocol for NSUserScriptTask

Available on crate feature NSUserScriptTask only.
Source§

impl NSObjectProtocol for NSUserUnixTask

Available on crate feature NSUserScriptTask only.
Source§

impl NSObjectProtocol for NSValue

Available on crate feature NSValue only.
Source§

impl NSObjectProtocol for NSValueTransformer

Available on crate feature NSValueTransformer only.
Source§

impl NSObjectProtocol for NSWhoseSpecifier

Available on crate feature NSScriptObjectSpecifiers only.
Source§

impl NSObjectProtocol for NSXMLDTD

Available on crate feature NSXMLDTD only.
Source§

impl NSObjectProtocol for NSXMLDTDNode

Available on crate feature NSXMLDTDNode only.
Source§

impl NSObjectProtocol for NSXMLDocument

Available on crate feature NSXMLDocument only.
Source§

impl NSObjectProtocol for NSXMLElement

Available on crate feature NSXMLElement only.
Source§

impl NSObjectProtocol for NSXMLNode

Available on crate feature NSXMLNode only.
Source§

impl NSObjectProtocol for NSXMLParser

Available on crate feature NSXMLParser only.
Source§

impl NSObjectProtocol for NSXPCCoder

Available on crate feature NSXPCConnection only.
Source§

impl NSObjectProtocol for NSXPCConnection

Available on crate feature NSXPCConnection only.
Source§

impl NSObjectProtocol for NSXPCInterface

Available on crate feature NSXPCConnection only.
Source§

impl NSObjectProtocol for NSXPCListener

Available on crate feature NSXPCConnection only.
Source§

impl NSObjectProtocol for NSXPCListenerEndpoint

Available on crate feature NSXPCConnection only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSCache<KeyType, ObjectType>

Available on crate feature NSCache only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSMapTable<KeyType, ObjectType>

Available on crate feature NSMapTable only.
Source§

impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSMutableDictionary<KeyType, ObjectType>

Available on crate feature NSDictionary only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSArray<ObjectType>

Available on crate feature NSArray only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSCountedSet<ObjectType>

Available on crate feature NSSet only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSDirectoryEnumerator<ObjectType>

Available on crate feature NSFileManager only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSEnumerator<ObjectType>

Available on crate feature NSEnumerator only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSHashTable<ObjectType>

Available on crate feature NSHashTable only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSMutableArray<ObjectType>

Available on crate feature NSArray only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSMutableOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSMutableSet<ObjectType>

Available on crate feature NSSet only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedCollectionChange<ObjectType>

Available on crate feature NSOrderedCollectionChange only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedCollectionDifference<ObjectType>

Available on crate feature NSOrderedCollectionDifference only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedSet<ObjectType>

Available on crate feature NSOrderedSet only.
Source§

impl<ObjectType: ?Sized> NSObjectProtocol for NSSet<ObjectType>

Available on crate feature NSSet only.
Source§

impl<T> NSObjectProtocol for ProtocolObject<T>
where T: NSObjectProtocol + ?Sized,

Source§

impl<UnitType: ?Sized> NSObjectProtocol for NSMeasurement<UnitType>

Available on crate feature NSMeasurement only.