MonobjcMonobjc Documented Class Library
AddObserverSelectorNameObject Method (observer, aSelector, notificationName, anObject)
NamespacesMonobjc.DiscRecordingDRNotificationCenterAddObserverSelectorNameObject(Id, IntPtr, NSString, Id)

Adds an observer to the receiver.

Original signature is '- (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSString*)notificationName object:(id)anObject'

Declaration Syntax
C#Visual BasicVisual C++
public virtual void AddObserverSelectorNameObject(
	Id observer,
	IntPtr aSelector,
	NSString notificationName,
	Id anObject
)
Public Overridable Sub AddObserverSelectorNameObject ( _
	observer As Id, _
	aSelector As IntPtr, _
	notificationName As NSString, _
	anObject As Id _
)
public:
virtual void AddObserverSelectorNameObject(
	Id^ observer, 
	IntPtr aSelector, 
	NSString^ notificationName, 
	Id^ anObject
)
Parameters
observer (Id)
The observer to send notifications to.
aSelector (IntPtr)
The selector to call
notificationName (NSString)
The notification to listen for
anObject (Id)
The object to limit notifications for.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.DiscRecording (Module: Monobjc.DiscRecording)