Trait objc2_foundation::NSObjectProtocol

source ·
pub unsafe trait NSObjectProtocol {
    // Provided methods
    fn isEqual(&self, other: &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) -> Id<NSObject>
       where Self: Sized + Message { ... }
    fn debugDescription(&self) -> Id<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: &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 Apple’s documentation for more details on what you may (and what you may not) do with this information.

source

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

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.

§Example

Check whether NSApplication has the effectiveAppearance method before calling it, to support systems older than macOS 10.14 where the method was added.

use objc2_app_kit::{NSApplication, NSAppearance, NSAppearanceNameAqua};
use objc2::runtime::NSObjectProtocol;
use objc2::sel;

let appearance = if obj.respondsToSelector(sel!(effectiveAppearance)) {
    NSApplication::sharedApplication(mtm).effectiveAppearance()
} else {
    unsafe { NSAppearance::appearanceNamed(NSAppearanceNameAqua).unwrap() }
};
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) -> Id<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::Id;
use objc2_foundation::{NSObject, NSObjectProtocol, NSString};

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

fn debugDescription(&self) -> Id<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 implemention 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.
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 + Sync + Send

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 features NSArchiver and NSCoder 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 features NSByteCountFormatter and NSFormatter 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 features NSCalendarDate and NSDate 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 features NSScriptStandardSuiteCommands and NSScriptCommand only.
source§

impl NSObjectProtocol for NSCloseCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
source§

impl NSObjectProtocol for NSCoder

Available on crate feature NSCoder only.
source§

impl NSObjectProtocol for NSComparisonPredicate

Available on crate features NSComparisonPredicate and NSPredicate only.
source§

impl NSObjectProtocol for NSCompoundPredicate

Available on crate features NSCompoundPredicate and NSPredicate 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 features NSScriptStandardSuiteCommands and NSScriptCommand only.
source§

impl NSObjectProtocol for NSCreateCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand 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 features NSDateComponentsFormatter and NSFormatter only.
source§

impl NSObjectProtocol for NSDateFormatter

Available on crate features NSDateFormatter and NSFormatter only.
source§

impl NSObjectProtocol for NSDateInterval

Available on crate feature NSDateInterval only.
source§

impl NSObjectProtocol for NSDateIntervalFormatter

Available on crate features NSDateIntervalFormatter and NSFormatter only.
source§

impl NSObjectProtocol for NSDecimalNumber

Available on crate features NSDecimalNumber and NSValue only.
source§

impl NSObjectProtocol for NSDecimalNumberHandler

Available on crate feature NSDecimalNumber only.
source§

impl NSObjectProtocol for NSDeleteCommand

Available on crate features NSScriptStandardSuiteCommands and NSScriptCommand only.
source§

impl NSObjectProtocol for NSDimension

Available on crate feature NSUnit only.
source§

impl NSObjectProtocol for NSDistantObject

Available on crate features NSDistantObject and NSProxy 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 features NSDistributedNotificationCenter and NSNotification only.
source§

impl NSObjectProtocol for NSEnergyFormatter

Available on crate features NSEnergyFormatter and NSFormatter 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 features NSScriptStandardSuiteCommands and NSScriptCommand 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 features NSScriptStandardSuiteCommands and NSScriptCommand 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 features NSISO8601DateFormatter and NSFormatter 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 NSKeyedArchiver

Available on crate features NSKeyedArchiver and NSCoder only.
source§

impl NSObjectProtocol for NSKeyedUnarchiver

Available on crate features NSKeyedArchiver and NSCoder only.
source§

impl NSObjectProtocol for NSLengthFormatter

Available on crate features NSLengthFormatter and NSFormatter only.
source§

impl NSObjectProtocol for NSLinguisticTagger

Available on crate feature NSLinguisticTagger only.
source§

impl NSObjectProtocol for NSListFormatter

Available on crate features NSListFormatter and NSFormatter only.
source§

impl NSObjectProtocol for NSLocale

Available on crate feature NSLocale 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 features NSMassFormatter and NSFormatter only.
source§

impl NSObjectProtocol for NSMeasurementFormatter

Available on crate features NSMeasurementFormatter and NSFormatter 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 features NSScriptStandardSuiteCommands and NSScriptCommand 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 features NSNumberFormatter and NSFormatter 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 features NSPersonNameComponentsFormatter and NSFormatter 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 features NSPortCoder and NSCoder 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 features NSProtocolChecker and NSProxy 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 features NSScriptStandardSuiteCommands and NSScriptCommand 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 features NSRelativeDateTimeFormatter and NSFormatter 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 features NSScriptClassDescription and NSClassDescription 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 features NSScriptStandardSuiteCommands and NSScriptCommand 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 features NSArchiver and NSCoder 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 features NSXMLDTD and NSXMLNode only.
source§

impl NSObjectProtocol for NSXMLDTDNode

Available on crate features NSXMLDTDNode and NSXMLNode only.
source§

impl NSObjectProtocol for NSXMLDocument

Available on crate features NSXMLDocument and NSXMLNode only.
source§

impl NSObjectProtocol for NSXMLElement

Available on crate features NSXMLElement and NSXMLNode 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 features NSXPCConnection and NSCoder 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 features NSFileManager and NSEnumerator 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.