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) -> 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§
sourcefn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
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.
sourcefn hash(&self) -> usize
fn hash(&self) -> usize
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.
sourcefn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
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.
sourcefn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its subclasses.
See isKindOfClass
for details.
sourcefn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
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.
sourcefn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
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() }
};
sourcefn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol.
See Apple’s documentation for details.
sourcefn description(&self) -> Retained<NSObject>
fn description(&self) -> Retained<NSObject>
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(obj.description()) };
println!("{desc:?}");
sourcefn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
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.
sourcefn isProxy(&self) -> bool
fn isProxy(&self) -> bool
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());
sourcefn retainCount(&self) -> usize
fn retainCount(&self) -> usize
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
impl ProtocolType for dyn NSObjectProtocol
impl<T> ImplementedBy<T> for dyn NSObjectProtocol
impl<T> ImplementedBy<T> for dyn NSObjectProtocol + Send
impl<T> ImplementedBy<T> for dyn NSObjectProtocol + Sync + Send
impl<T> ImplementedBy<T> for dyn NSObjectProtocol + Sync
Implementors§
impl NSObjectProtocol for NSAffineTransform
NSAffineTransform
only.impl NSObjectProtocol for NSAppleEventDescriptor
NSAppleEventDescriptor
only.impl NSObjectProtocol for NSAppleEventManager
NSAppleEventManager
only.impl NSObjectProtocol for NSAppleScript
NSAppleScript
only.impl NSObjectProtocol for NSArchiver
NSArchiver
and NSCoder
only.impl NSObjectProtocol for NSAssertionHandler
NSException
only.impl NSObjectProtocol for NSAttributedString
NSAttributedString
only.impl NSObjectProtocol for NSAttributedStringMarkdownParsingOptions
NSAttributedString
only.impl NSObjectProtocol for NSAttributedStringMarkdownSourcePosition
NSAttributedString
only.impl NSObjectProtocol for NSAutoreleasePool
NSAutoreleasePool
only.impl NSObjectProtocol for NSBackgroundActivityScheduler
NSBackgroundActivityScheduler
only.impl NSObjectProtocol for NSBlockOperation
NSOperation
only.impl NSObjectProtocol for NSBundle
NSBundle
only.impl NSObjectProtocol for NSBundleResourceRequest
NSBundle
only.impl NSObjectProtocol for NSByteCountFormatter
NSByteCountFormatter
and NSFormatter
only.impl NSObjectProtocol for NSCachedURLResponse
NSURLCache
only.impl NSObjectProtocol for NSCalendar
NSCalendar
only.impl NSObjectProtocol for NSCalendarDate
NSCalendarDate
and NSDate
only.impl NSObjectProtocol for NSCharacterSet
NSCharacterSet
only.impl NSObjectProtocol for NSClassDescription
NSClassDescription
only.impl NSObjectProtocol for NSCloneCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSCloseCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSCoder
NSCoder
only.impl NSObjectProtocol for NSComparisonPredicate
NSComparisonPredicate
and NSPredicate
only.impl NSObjectProtocol for NSCompoundPredicate
NSCompoundPredicate
and NSPredicate
only.impl NSObjectProtocol for NSCondition
NSLock
only.impl NSObjectProtocol for NSConditionLock
NSLock
only.impl NSObjectProtocol for NSConnection
NSConnection
only.impl NSObjectProtocol for NSConstantString
NSString
only.impl NSObjectProtocol for NSCountCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSCreateCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSData
NSData
only.impl NSObjectProtocol for NSDataDetector
NSRegularExpression
only.impl NSObjectProtocol for NSDate
NSDate
only.impl NSObjectProtocol for NSDateComponents
NSCalendar
only.impl NSObjectProtocol for NSDateComponentsFormatter
NSDateComponentsFormatter
and NSFormatter
only.impl NSObjectProtocol for NSDateFormatter
NSDateFormatter
and NSFormatter
only.impl NSObjectProtocol for NSDateInterval
NSDateInterval
only.impl NSObjectProtocol for NSDateIntervalFormatter
NSDateIntervalFormatter
and NSFormatter
only.impl NSObjectProtocol for NSDecimalNumber
NSDecimalNumber
and NSValue
only.impl NSObjectProtocol for NSDecimalNumberHandler
NSDecimalNumber
only.impl NSObjectProtocol for NSDeleteCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSDimension
NSUnit
only.impl NSObjectProtocol for NSDistantObject
NSDistantObject
and NSProxy
only.impl NSObjectProtocol for NSDistantObjectRequest
NSConnection
only.impl NSObjectProtocol for NSDistributedLock
NSDistributedLock
only.impl NSObjectProtocol for NSDistributedNotificationCenter
NSDistributedNotificationCenter
and NSNotification
only.impl NSObjectProtocol for NSEnergyFormatter
NSEnergyFormatter
and NSFormatter
only.impl NSObjectProtocol for NSError
NSError
only.impl NSObjectProtocol for NSException
NSException
only.impl NSObjectProtocol for NSExistsCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSExpression
NSExpression
only.impl NSObjectProtocol for NSExtensionContext
NSExtensionContext
only.impl NSObjectProtocol for NSExtensionItem
NSExtensionItem
only.impl NSObjectProtocol for NSFileAccessIntent
NSFileCoordinator
only.impl NSObjectProtocol for NSFileCoordinator
NSFileCoordinator
only.impl NSObjectProtocol for NSFileHandle
NSFileHandle
only.impl NSObjectProtocol for NSFileManager
NSFileManager
only.impl NSObjectProtocol for NSFileProviderService
NSFileManager
only.impl NSObjectProtocol for NSFileSecurity
NSURL
only.impl NSObjectProtocol for NSFileVersion
NSFileVersion
only.impl NSObjectProtocol for NSFileWrapper
NSFileWrapper
only.impl NSObjectProtocol for NSFormatter
NSFormatter
only.impl NSObjectProtocol for NSGarbageCollector
NSGarbageCollector
only.impl NSObjectProtocol for NSGetCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSHTTPCookie
NSHTTPCookie
only.impl NSObjectProtocol for NSHTTPCookieStorage
NSHTTPCookieStorage
only.impl NSObjectProtocol for NSHTTPURLResponse
NSURLResponse
only.impl NSObjectProtocol for NSHost
NSHost
only.impl NSObjectProtocol for NSISO8601DateFormatter
NSISO8601DateFormatter
and NSFormatter
only.impl NSObjectProtocol for NSIndexPath
NSIndexPath
only.impl NSObjectProtocol for NSIndexSet
NSIndexSet
only.impl NSObjectProtocol for NSIndexSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSInflectionRule
NSInflectionRule
only.impl NSObjectProtocol for NSInflectionRuleExplicit
NSInflectionRule
only.impl NSObjectProtocol for NSInputStream
NSStream
only.impl NSObjectProtocol for NSInvocation
NSInvocation
only.impl NSObjectProtocol for NSInvocationOperation
NSOperation
only.impl NSObjectProtocol for NSItemProvider
NSItemProvider
only.impl NSObjectProtocol for NSJSONSerialization
NSJSONSerialization
only.impl NSObjectProtocol for NSKeyedArchiver
NSKeyedArchiver
and NSCoder
only.impl NSObjectProtocol for NSKeyedUnarchiver
NSKeyedArchiver
and NSCoder
only.impl NSObjectProtocol for NSLengthFormatter
NSLengthFormatter
and NSFormatter
only.impl NSObjectProtocol for NSLinguisticTagger
NSLinguisticTagger
only.impl NSObjectProtocol for NSListFormatter
NSListFormatter
and NSFormatter
only.impl NSObjectProtocol for NSLocale
NSLocale
only.impl NSObjectProtocol for NSLock
NSLock
only.impl NSObjectProtocol for NSLogicalTest
NSScriptWhoseTests
only.impl NSObjectProtocol for NSMachBootstrapServer
NSPortNameServer
only.impl NSObjectProtocol for NSMachPort
NSPort
only.impl NSObjectProtocol for NSMassFormatter
NSMassFormatter
and NSFormatter
only.impl NSObjectProtocol for NSMeasurementFormatter
NSMeasurementFormatter
and NSFormatter
only.impl NSObjectProtocol for NSMessagePort
NSPort
only.impl NSObjectProtocol for NSMessagePortNameServer
NSPortNameServer
only.impl NSObjectProtocol for NSMetadataItem
NSMetadata
only.impl NSObjectProtocol for NSMetadataQuery
NSMetadata
only.impl NSObjectProtocol for NSMetadataQueryAttributeValueTuple
NSMetadata
only.impl NSObjectProtocol for NSMetadataQueryResultGroup
NSMetadata
only.impl NSObjectProtocol for NSMethodSignature
NSMethodSignature
only.impl NSObjectProtocol for NSMiddleSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSMorphology
NSMorphology
only.impl NSObjectProtocol for NSMorphologyCustomPronoun
NSMorphology
only.impl NSObjectProtocol for NSMorphologyPronoun
NSMorphology
only.impl NSObjectProtocol for NSMoveCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSMutableAttributedString
NSAttributedString
only.impl NSObjectProtocol for NSMutableCharacterSet
NSCharacterSet
only.impl NSObjectProtocol for NSMutableData
NSData
only.impl NSObjectProtocol for NSMutableIndexSet
NSIndexSet
only.impl NSObjectProtocol for NSMutableString
NSString
only.impl NSObjectProtocol for NSMutableURLRequest
NSURLRequest
only.impl NSObjectProtocol for NSNameSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSNetService
NSNetServices
only.impl NSObjectProtocol for NSNetServiceBrowser
NSNetServices
only.impl NSObjectProtocol for NSNotification
NSNotification
only.impl NSObjectProtocol for NSNotificationCenter
NSNotification
only.impl NSObjectProtocol for NSNotificationQueue
NSNotificationQueue
only.impl NSObjectProtocol for NSNull
NSNull
only.impl NSObjectProtocol for NSNumber
NSValue
only.impl NSObjectProtocol for NSNumberFormatter
NSNumberFormatter
and NSFormatter
only.impl NSObjectProtocol for NSObject
impl NSObjectProtocol for NSOperation
NSOperation
only.impl NSObjectProtocol for NSOperationQueue
NSOperation
only.impl NSObjectProtocol for NSOrthography
NSOrthography
only.impl NSObjectProtocol for NSOutputStream
NSStream
only.impl NSObjectProtocol for NSPersonNameComponents
NSPersonNameComponents
only.impl NSObjectProtocol for NSPersonNameComponentsFormatter
NSPersonNameComponentsFormatter
and NSFormatter
only.impl NSObjectProtocol for NSPipe
NSFileHandle
only.impl NSObjectProtocol for NSPointerArray
NSPointerArray
only.impl NSObjectProtocol for NSPointerFunctions
NSPointerFunctions
only.impl NSObjectProtocol for NSPort
NSPort
only.impl NSObjectProtocol for NSPortCoder
NSPortCoder
and NSCoder
only.impl NSObjectProtocol for NSPortMessage
NSPortMessage
only.impl NSObjectProtocol for NSPortNameServer
NSPortNameServer
only.impl NSObjectProtocol for NSPositionalSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSPredicate
NSPredicate
only.impl NSObjectProtocol for NSPresentationIntent
NSAttributedString
only.impl NSObjectProtocol for NSProcessInfo
NSProcessInfo
only.impl NSObjectProtocol for NSProgress
NSProgress
only.impl NSObjectProtocol for NSPropertyListSerialization
NSPropertyList
only.impl NSObjectProtocol for NSPropertySpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSProtocolChecker
NSProtocolChecker
and NSProxy
only.impl NSObjectProtocol for NSProxy
impl NSObjectProtocol for NSPurgeableData
NSData
only.impl NSObjectProtocol for NSQuitCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSRandomSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSRangeSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSRecursiveLock
NSLock
only.impl NSObjectProtocol for NSRegularExpression
NSRegularExpression
only.impl NSObjectProtocol for NSRelativeDateTimeFormatter
NSRelativeDateTimeFormatter
and NSFormatter
only.impl NSObjectProtocol for NSRelativeSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSRunLoop
NSRunLoop
only.impl NSObjectProtocol for NSScanner
NSScanner
only.impl NSObjectProtocol for NSScriptClassDescription
NSScriptClassDescription
and NSClassDescription
only.impl NSObjectProtocol for NSScriptCoercionHandler
NSScriptCoercionHandler
only.impl NSObjectProtocol for NSScriptCommand
NSScriptCommand
only.impl NSObjectProtocol for NSScriptCommandDescription
NSScriptCommandDescription
only.impl NSObjectProtocol for NSScriptExecutionContext
NSScriptExecutionContext
only.impl NSObjectProtocol for NSScriptObjectSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSScriptSuiteRegistry
NSScriptSuiteRegistry
only.impl NSObjectProtocol for NSScriptWhoseTest
NSScriptWhoseTests
only.impl NSObjectProtocol for NSSecureUnarchiveFromDataTransformer
NSValueTransformer
only.impl NSObjectProtocol for NSSetCommand
NSScriptStandardSuiteCommands
and NSScriptCommand
only.impl NSObjectProtocol for NSSimpleCString
NSString
only.impl NSObjectProtocol for NSSocketPort
NSPort
only.impl NSObjectProtocol for NSSocketPortNameServer
NSPortNameServer
only.impl NSObjectProtocol for NSSortDescriptor
NSSortDescriptor
only.impl NSObjectProtocol for NSSpecifierTest
NSScriptWhoseTests
only.impl NSObjectProtocol for NSSpellServer
NSSpellServer
only.impl NSObjectProtocol for NSStream
NSStream
only.impl NSObjectProtocol for NSString
NSString
only.impl NSObjectProtocol for NSTask
NSTask
only.impl NSObjectProtocol for NSTermOfAddress
NSTermOfAddress
only.impl NSObjectProtocol for NSTextCheckingResult
NSTextCheckingResult
only.impl NSObjectProtocol for NSThread
NSThread
only.impl NSObjectProtocol for NSTimeZone
NSTimeZone
only.impl NSObjectProtocol for NSTimer
NSTimer
only.impl NSObjectProtocol for NSURL
NSURL
only.impl NSObjectProtocol for NSURLAuthenticationChallenge
NSURLAuthenticationChallenge
only.impl NSObjectProtocol for NSURLCache
NSURLCache
only.impl NSObjectProtocol for NSURLComponents
NSURL
only.impl NSObjectProtocol for NSURLConnection
NSURLConnection
only.impl NSObjectProtocol for NSURLCredential
NSURLCredential
only.impl NSObjectProtocol for NSURLCredentialStorage
NSURLCredentialStorage
only.impl NSObjectProtocol for NSURLDownload
NSURLDownload
only.impl NSObjectProtocol for NSURLHandle
NSURLHandle
only.impl NSObjectProtocol for NSURLProtectionSpace
NSURLProtectionSpace
only.impl NSObjectProtocol for NSURLProtocol
NSURLProtocol
only.impl NSObjectProtocol for NSURLQueryItem
NSURL
only.impl NSObjectProtocol for NSURLRequest
NSURLRequest
only.impl NSObjectProtocol for NSURLResponse
NSURLResponse
only.impl NSObjectProtocol for NSURLSession
NSURLSession
only.impl NSObjectProtocol for NSURLSessionConfiguration
NSURLSession
only.impl NSObjectProtocol for NSURLSessionDataTask
NSURLSession
only.impl NSObjectProtocol for NSURLSessionDownloadTask
NSURLSession
only.impl NSObjectProtocol for NSURLSessionStreamTask
NSURLSession
only.impl NSObjectProtocol for NSURLSessionTask
NSURLSession
only.impl NSObjectProtocol for NSURLSessionTaskMetrics
NSURLSession
only.impl NSObjectProtocol for NSURLSessionTaskTransactionMetrics
NSURLSession
only.impl NSObjectProtocol for NSURLSessionUploadTask
NSURLSession
only.impl NSObjectProtocol for NSURLSessionWebSocketMessage
NSURLSession
only.impl NSObjectProtocol for NSURLSessionWebSocketTask
NSURLSession
only.impl NSObjectProtocol for NSUUID
NSUUID
only.impl NSObjectProtocol for NSUbiquitousKeyValueStore
NSUbiquitousKeyValueStore
only.impl NSObjectProtocol for NSUnarchiver
NSArchiver
and NSCoder
only.impl NSObjectProtocol for NSUndoManager
NSUndoManager
only.impl NSObjectProtocol for NSUniqueIDSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSUnit
NSUnit
only.impl NSObjectProtocol for NSUnitAcceleration
NSUnit
only.impl NSObjectProtocol for NSUnitAngle
NSUnit
only.impl NSObjectProtocol for NSUnitArea
NSUnit
only.impl NSObjectProtocol for NSUnitConcentrationMass
NSUnit
only.impl NSObjectProtocol for NSUnitConverter
NSUnit
only.impl NSObjectProtocol for NSUnitConverterLinear
NSUnit
only.impl NSObjectProtocol for NSUnitDispersion
NSUnit
only.impl NSObjectProtocol for NSUnitDuration
NSUnit
only.impl NSObjectProtocol for NSUnitElectricCharge
NSUnit
only.impl NSObjectProtocol for NSUnitElectricCurrent
NSUnit
only.impl NSObjectProtocol for NSUnitElectricPotentialDifference
NSUnit
only.impl NSObjectProtocol for NSUnitElectricResistance
NSUnit
only.impl NSObjectProtocol for NSUnitEnergy
NSUnit
only.impl NSObjectProtocol for NSUnitFrequency
NSUnit
only.impl NSObjectProtocol for NSUnitFuelEfficiency
NSUnit
only.impl NSObjectProtocol for NSUnitIlluminance
NSUnit
only.impl NSObjectProtocol for NSUnitInformationStorage
NSUnit
only.impl NSObjectProtocol for NSUnitLength
NSUnit
only.impl NSObjectProtocol for NSUnitMass
NSUnit
only.impl NSObjectProtocol for NSUnitPower
NSUnit
only.impl NSObjectProtocol for NSUnitPressure
NSUnit
only.impl NSObjectProtocol for NSUnitSpeed
NSUnit
only.impl NSObjectProtocol for NSUnitTemperature
NSUnit
only.impl NSObjectProtocol for NSUnitVolume
NSUnit
only.impl NSObjectProtocol for NSUserActivity
NSUserActivity
only.impl NSObjectProtocol for NSUserAppleScriptTask
NSUserScriptTask
only.impl NSObjectProtocol for NSUserAutomatorTask
NSUserScriptTask
only.impl NSObjectProtocol for NSUserDefaults
NSUserDefaults
only.impl NSObjectProtocol for NSUserNotification
NSUserNotification
only.impl NSObjectProtocol for NSUserNotificationAction
NSUserNotification
only.impl NSObjectProtocol for NSUserNotificationCenter
NSUserNotification
only.impl NSObjectProtocol for NSUserScriptTask
NSUserScriptTask
only.impl NSObjectProtocol for NSUserUnixTask
NSUserScriptTask
only.impl NSObjectProtocol for NSValue
NSValue
only.impl NSObjectProtocol for NSValueTransformer
NSValueTransformer
only.impl NSObjectProtocol for NSWhoseSpecifier
NSScriptObjectSpecifiers
only.impl NSObjectProtocol for NSXMLDTD
NSXMLDTD
and NSXMLNode
only.impl NSObjectProtocol for NSXMLDTDNode
NSXMLDTDNode
and NSXMLNode
only.impl NSObjectProtocol for NSXMLDocument
NSXMLDocument
and NSXMLNode
only.impl NSObjectProtocol for NSXMLElement
NSXMLElement
and NSXMLNode
only.impl NSObjectProtocol for NSXMLNode
NSXMLNode
only.impl NSObjectProtocol for NSXMLParser
NSXMLParser
only.impl NSObjectProtocol for NSXPCCoder
NSXPCConnection
and NSCoder
only.impl NSObjectProtocol for NSXPCConnection
NSXPCConnection
only.impl NSObjectProtocol for NSXPCInterface
NSXPCConnection
only.impl NSObjectProtocol for NSXPCListener
NSXPCConnection
only.impl NSObjectProtocol for NSXPCListenerEndpoint
NSXPCConnection
only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSCache<KeyType, ObjectType>
NSCache
only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSDictionary<KeyType, ObjectType>
NSDictionary
only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSMapTable<KeyType, ObjectType>
NSMapTable
only.impl<KeyType: ?Sized, ObjectType: ?Sized> NSObjectProtocol for NSMutableDictionary<KeyType, ObjectType>
NSDictionary
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSArray<ObjectType>
NSArray
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSCountedSet<ObjectType>
NSSet
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSDirectoryEnumerator<ObjectType>
NSFileManager
and NSEnumerator
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSEnumerator<ObjectType>
NSEnumerator
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSHashTable<ObjectType>
NSHashTable
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSMutableArray<ObjectType>
NSArray
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSMutableOrderedSet<ObjectType>
NSOrderedSet
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSMutableSet<ObjectType>
NSSet
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedCollectionChange<ObjectType>
NSOrderedCollectionChange
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedCollectionDifference<ObjectType>
NSOrderedCollectionDifference
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSOrderedSet<ObjectType>
NSOrderedSet
only.impl<ObjectType: ?Sized> NSObjectProtocol for NSSet<ObjectType>
NSSet
only.impl<T> NSObjectProtocol for ProtocolObject<T>where
T: NSObjectProtocol + ?Sized,
impl<UnitType: ?Sized> NSObjectProtocol for NSMeasurement<UnitType>
NSMeasurement
only.