|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wotonomy.foundation.NSNotification
public class NSNotification
An NSNotification is a generic message that can be dispatched by the NSNotificationCenter.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.lang.Object |
object
|
static boolean |
showStack
|
protected java.util.Map |
userInfo
|
Constructor Summary | |
---|---|
NSNotification()
Default constructor creates a new notification with no name, object, or info dictionary. |
|
NSNotification(java.lang.String aName,
java.lang.Object anObject)
Constructor specifying name and object. |
|
NSNotification(java.lang.String aName,
java.lang.Object anObject,
java.util.Map aUserInfo)
Constructor specifying name, object, and a Map containing application specific information. |
Method Summary | |
---|---|
java.lang.String |
name()
Returns the name of this notification. |
java.lang.Object |
object()
Returns the object of this notification. |
java.lang.Throwable |
stackTrace()
Returns the stack trace when this notification was generated, or null if showStack is false, which is the default. |
java.lang.String |
toString()
Returns a human-readable string representation. |
NSDictionary |
userInfo()
Returns an NSDictionary that is a copy of the map containing application specific information relating to this notification, or null if no such data exists. |
java.util.Map |
userInfoMap()
Returns a Map containing application specific information relating to this notification, or null if no such data exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static boolean showStack
protected java.lang.String name
protected java.lang.Object object
protected java.util.Map userInfo
Constructor Detail |
---|
public NSNotification()
public NSNotification(java.lang.String aName, java.lang.Object anObject)
public NSNotification(java.lang.String aName, java.lang.Object anObject, java.util.Map aUserInfo)
Method Detail |
---|
public java.lang.String name()
public java.lang.Object object()
public NSDictionary userInfo()
public java.util.Map userInfoMap()
public java.lang.Throwable stackTrace()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |