All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.NotificationCenter

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.NotificationCenter

public class NotificationCenter
extends NativeObject
This class wraps the Objective-C class NSNotificationCenter.


Constructor Index

 o NotificationCenter()
This default constructor is equivalent to Objective-C's [[NSNotificationCenter alloc] init].
 o NotificationCenter(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.

Method Index

 o addObserver(Object, Selector, String, Object)
A wrapper for the - addObserver:selector:name:object: Objective-C instance method.
 o defaultCenter()
A wrapper for the + defaultCenter Objective-C class method.
 o postNotification(Notification)
A wrapper for the - postNotification: Objective-C instance method.
 o postNotificationForNameAndObject(String, Object)
A wrapper for the - postNotificationName:object: Objective-C instance method.
 o postNotificationForNameAndObjectAndUserInfo(String, Object, Dictionary)
A wrapper for the - postNotificationName:object:userInfo: Objective-C instance method.
 o removeObserver(Object)
A wrapper for the - removeObserver: Objective-C instance method.
 o removeObserverForNameAndObject(Object, String, Object)
A wrapper for the - removeObserver:name:object: Objective-C instance method.

Constructors

 o NotificationCenter
 protected NotificationCenter(boolean shouldAllocate,
                              int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o NotificationCenter
 public NotificationCenter()
This default constructor is equivalent to Objective-C's [[NSNotificationCenter alloc] init].

Methods

 o defaultCenter
 public static native NotificationCenter defaultCenter()
A wrapper for the + defaultCenter Objective-C class method.

 o addObserver
 public native void addObserver(Object observer,
                                Selector aSelector,
                                String aName,
                                Object anObject)
A wrapper for the - addObserver:selector:name:object: Objective-C instance method.

 o postNotification
 public native void postNotification(Notification notification)
A wrapper for the - postNotification: Objective-C instance method.

 o postNotificationForNameAndObject
 public native void postNotificationForNameAndObject(String aName,
                                                     Object anObject)
A wrapper for the - postNotificationName:object: Objective-C instance method.

 o postNotificationForNameAndObjectAndUserInfo
 public native void postNotificationForNameAndObjectAndUserInfo(String aName,
                                                                Object anObject,
                                                                Dictionary aUserInfo)
A wrapper for the - postNotificationName:object:userInfo: Objective-C instance method.

 o removeObserver
 public native void removeObserver(Object observer)
A wrapper for the - removeObserver: Objective-C instance method.

 o removeObserverForNameAndObject
 public native void removeObserverForNameAndObject(Object observer,
                                                   String aName,
                                                   Object anObject)
A wrapper for the - removeObserver:name:object: Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index