Package NotificationFramework :: Module Notification :: Class Notification
[show private | hide private]
[frames | no frames]

Class Notification


Notification objects are generally encountered when supplied by the NotificationCenter to its listener's callback method.

A Notification object is designed as an immutable object.

You should not need to directly instanciate Notification objects: rather, use NotificationCenter methods to add or remove observers and to post notifications.


Method Summary
  __init__(self, name, object, userInfo)
This is the Notification initializer -- you should not directly instanciate a Notification object: rather, use NotificationCenter methods to add observers or to post notifications
  __eq__(self, aNotification)
Two notifications are equal if and only if their names and objects are equal
  __hash__(self)
Returns the hash code for the receiver
  __ne__(self, aNotification)
Boolean negation of __eq__
  __setattr__(self, name, value)
Raises TypeError since this is an immutable object
  __str__(self)
Returns a user-presentable string representing the object
  name(self)
Returns the receiver's field 'name'
  object(self)
Returns the receiver's field 'object'
  userInfo(self)
Returns the receiver's field 'info'

Method Details

__init__(self, name, object=None, userInfo=None)
(Constructor)

This is the Notification initializer -- you should not directly instanciate a Notification object: rather, use NotificationCenter methods to add observers or to post notifications

__eq__(self, aNotification)
(Equality operator)

Two notifications are equal if and only if their names and objects are equal

__hash__(self)
(Hashing function)

Returns the hash code for the receiver

__ne__(self, aNotification)

Boolean negation of __eq__

__setattr__(self, name, value)

Raises TypeError since this is an immutable object

__str__(self)
(Informal representation operator)

Returns a user-presentable string representing the object

name(self)

Returns the receiver's field 'name'

object(self)

Returns the receiver's field 'object'

userInfo(self)

Returns the receiver's field 'info'

Generated by Epydoc 2.1 on Sat Mar 4 13:36:33 2006 http://epydoc.sf.net