iOS Guides | Samples

Foundation.NSObject: Method Members

The methods of Foundation.NSObject are listed below. For a list of all members, see the NSObject list.

See Also: Object

Public Methods

AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>) : IDisposable
Registers an object for being observed externally using an arbitrary method.
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>) : IDisposable
Registers an object for being observed externally using an arbitrary method.
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr)
Registers an object for being observed externally (using NSString keyPath).   Observed changes are dispatched to the observer’s object NSObject.ObserveValue method.
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr)
Registers an object for being observed externally (using string keyPath).   Observed changes are dispatched to the observer’s object NSObject.ObserveValue method.
static
Alloc(Class) : NSObject
static
AutomaticallyNotifiesObserversForKey(String) : Boolean
Whether this object is providing key-value notifications for the specified key.
AwakeFromNib()
Called after the object has been loaded from the nib file. Overriders must call base.AwakeFromNib().
BeginInvokeOnMainThread(Action)
BeginInvokeOnMainThread(Selector, NSObject)
Invokes asynchrously the specified code on the main UI thread.
static
CancelPreviousPerformRequest(NSObject)
Cancels a pending time-delayed Invoke or PerformSelector.
static
CancelPreviousPerformRequest(NSObject, Selector, NSObject)
Cancels a pending time-delayed PerformSelector.
ConformsToProtocol(IntPtr) : Boolean
Invoked to determine if this object implements the specified protocol.
Copy() : NSObject
Performs a copy of the underlying Objective-C object.
DangerousAutorelease() : NSObject
DangerousRelease()
DangerousRetain() : NSObject
DidChange(NSKeyValueChange, NSIndexSet, NSString)
Indicates a change occurred to the indexes for a to-many relationship.
DidChange(NSString, NSKeyValueSetMutationKind, NSSet)
DidChangeValue(String)
Indicates that a change occurred on the specified key.
Dispose()
Releases the resources used by the NSObject object.
DoesNotRecognizeSelector(Selector)
Indicates that this object does not recognize the specified selector.
Equals(NSObject) : Boolean
override
Equals(Object) : Boolean
Finalize()
Finalizer for the NSObject object
static
FromObject(Object) : NSObject
Boxes an object into an NSObject.
GetDictionaryOfValuesFromKeys(NSString[]) : NSDictionary
Retrieves the values of the specified keys.
override
GetHashCode() : Int32
Generates a hash code for the current instance.
static
GetKeyPathsForValuesAffecting(NSString) : NSSet
The key paths whose values affect the value of the specified key.
GetMethodForSelector(Selector) : IntPtr
GetNativeField(String) : NSObject
GetNativeHash() : nuint
Init()
Invoke(Action, Double)
Invoke(Action, TimeSpan)
static
InvokeInBackground(Action)
InvokeOnMainThread(Action)
InvokeOnMainThread(Selector, NSObject)
Invokes synchrously the specified code on the main UI thread.
IsEqual(NSObject) : Boolean
IsKindOfClass(Class) : Boolean
IsMemberOfClass(Class) : Boolean
static
IsNewRefcountEnabled() : Boolean
Internal -- Determines whether MonoTouch is using the new toggle-reference system or not
MutableCopy() : NSObject
Creates a mutable copy of the specified NSObject.
ObserveValue(NSString, NSObject, NSDictionary, IntPtr)
Indicates that the value at the specified keyPath relative to this object has changed.
PerformSelector(Selector) : NSObject
PerformSelector(Selector, NSObject) : NSObject
PerformSelector(Selector, NSObject, NSObject) : NSObject
PerformSelector(Selector, NSObject, Double)
Invokes the selector on the current instance and if the obj is not null, it passes this as its single parameter.
PerformSelector(Selector, NSObject, Double, NSString[])
PerformSelector(Selector, NSThread, NSObject, Boolean)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[])
PrepareForInterfaceBuilder()
RemoveObserver(NSObject, NSString)
Stops the specified observer from receiving further notifications of changed values for the specified keyPath.
RemoveObserver(NSObject, String)
Stops the specified observer from receiving further notifications of changed values for the specified keyPath.
RemoveObserver(NSObject, NSString, IntPtr)
Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.
RemoveObserver(NSObject, String, IntPtr)
Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.
RespondsToSelector(Selector) : Boolean
Whether this object recognizes the specified selector.
SetNativeField(String, NSObject)
SetNilValueForKey(NSString)
Sets the value of the specified key to null.
SetValueForKey(NSObject, NSString)
Sets the value of the property specified by the key to the specified value.
SetValueForKeyPath(NSObject, NSString)
Sets the value of a property that can be reached using a keypath.
SetValueForKeyPath(IntPtr, NSString)
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
SetValueForUndefinedKey(NSObject, NSString)
Indicates an attempt to write a value to an undefined key. If not overridden, raises an NSUndefinedKeyException.
SetValuesForKeysWithDictionary(NSDictionary)
Sets the values of this NSObject to those in the specified dictionary.
override
ToString() : String
Returns a string representation of the value of the current instance.
ValueForKey(NSString) : NSObject
Returns the value of the property associated with the specified key.
ValueForKeyPath(NSString) : NSObject
Returns the value of a property that can be reached using a keypath.
ValueForUndefinedKey(NSString) : NSObject
Indicates an attempt to read a value of an undefined key. If not overridden, raises an NSUndefinedKeyException.
WillChange(NSKeyValueChange, NSIndexSet, NSString)
Indicates that the values of the specified indices in the specified key are about to change.
WillChange(NSString, NSKeyValueSetMutationKind, NSSet)
WillChangeValue(String)
Indicates that the value of the specified key is about to change.

Protected Methods

Dispose(Boolean)
Releases the resources used by the NSObject object.
InitializeHandle(IntPtr)
InitializeHandle(IntPtr, String)
MarkDirty()
Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.