Mac Guides | Samples

MonoMac.Foundation.NSObject Class

Base class for all bound objects that map to Objective-C objects.

See Also: NSObject

Syntax

[MonoMac.Foundation.Register("NSObject", true)]
public class NSObject : INativeObject, IDisposable

Remarks

This is the base class that is used to bind Objective-C classes to C# classes. Merely subclassing from NSObject will produce a class that can be passed to Objective-C.

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSObject are listed below.

See Also: Object

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Fields

static readonly
MonoMacAssemblyAssembly. Points to the montoouch assembly.

Protected Fields

IsDirectBindingBoolean. Determines whether this class is a direct binding to an Objective-C class, or if this is a subclass of a direct binding.

Public Properties

[read-only]
static
ChangeIndexesKeyNSString. Represents the value associated with the constant NSKeyValueChangeIndexesKey
[read-only]
static
ChangeKindKeyNSString. Represents the value associated with the constant NSKeyValueChangeKindKey
[read-only]
static
ChangeNewKeyNSString. Represents the value associated with the constant NSKeyValueChangeNewKey
[read-only]
static
ChangeNotificationIsPriorKeyNSString. Represents the value associated with the constant NSKeyValueChangeNotificationIsPriorKey
[read-only]
static
ChangeOldKeyNSString. Represents the value associated with the constant NSKeyValueChangeOldKey
[read-only]
ClassHandleIntPtr. The handle for this class.
[read-only]
DebugDescriptionString.
[read-only]
DescriptionString.
HandleIntPtr. Handle (pointer) to the unmanaged object representation.
[read-only]
SuperHandleIntPtr.

Public Methods

AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr)
static
AutomaticallyNotifiesObserversForKey(String) : Boolean
AwakeFromNib()
BeginInvokeOnMainThread(NSAction)
Invokes asynchrously the specified code on the main UI thread.
BeginInvokeOnMainThread(Selector, NSObject)
Invokes asynchrously the specified code on the main UI thread.
Bind(String, NSObject, String, NSDictionary)
BindingInfo(String) : NSDictionary
BindingOptionDescriptions(String) : NSObject[]
BindingValueClass(String) : Class
CommitEditing() : Boolean
CommitEditing(NSObject, Selector, IntPtr)
ConformsToProtocol(IntPtr) : Boolean
Invoked to determine if this object implements the specified protocol.
Copy() : NSObject
DidChange(NSKeyValueChange, NSIndexSet, NSString)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet)
DidChangeValue(String)
Dispose()
Releases the resourced used by the NSObject object.
DoesNotRecognizeSelector(Selector)
EncodeTo(NSCoder)
A constructor that initializes the object from the data stored in the unarchiver object.
ExposedBindings() : NSString[]
Finalize()
Finalizer for the NSObject object
static
FromObject(Object) : NSObject
Boxes an object into an NSObject.
static
GetDefaultPlaceholder(NSObject, String) : NSObject
GetDictionaryOfValuesFromKeys(NSString[]) : NSDictionary
static
GetKeyPathsForValuesAffecting(NSString) : NSSet
GetNativeField(String) : NSObject
InvokeOnMainThread(NSAction)
Invokes synchronously the specified code on the main UI thread.
InvokeOnMainThread(Selector, NSObject)
Invokes synchrously the specified code on the main UI thread.
MutableCopy() : NSObject
ObjectDidEndEditing(NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr)
PerformSelector(Selector, NSObject, Double)
RemoveObserver(NSObject, NSString)
RespondsToSelector(Selector) : Boolean
static
SetDefaultPlaceholder(NSObject, NSObject, String) : NSObject
SetNativeField(String, NSObject)
SetNilValueForKey(NSString)
SetValueForKey(NSObject, NSString)
SetValueForKeyPath(NSObject, NSString)
SetValueForKeyPath(IntPtr, NSString)
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
SetValueForUndefinedKey(NSObject, NSString)
SetValuesForKeysWithDictionary(NSDictionary)
override
ToString() : String
Returns a string representation of the value of the current instance.
Unbind(String)
ValueForKey(NSString) : NSObject
ValueForKeyPath(NSString) : NSObject
ValueForUndefinedKey(NSString) : NSObject
WillChange(NSKeyValueChange, NSIndexSet, NSString)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet)
WillChangeValue(String)

Protected Methods

Dispose(Boolean)
Releases the resourced used by the NSObject object.