public abstract class ERXRemoteNotificationCenter extends NSNotificationCenter
NSNotificationCenter.defaultCenter()
.
If you don't link ERJGroupsSynchronizer, it will create a simple implementation, which posts via multicast - and is thus not really reliable and can't handle larger useInfo dict (of which keys and values must be strings). Also, you need to explicitely send the notification locally if you want to receive it in the sending application.
Name | Description |
---|---|
er.extensions.ERXRemoteNotificationCenter.localBindAddress | the local address to bind to |
er.extensions.ERXRemoteNotificationCenter.group | the multicast address to send to (230.0.0.1) |
er.extensions.ERXRemoteNotificationCenter.port | the multicast port to send to (9754) |
er.extensions.ERXRemoteNotificationCenter.maxPacketSize | the maximum multicast packet size (1024) |
er.extensions.ERXRemoteNotificationCenter.identifier | the unique identifier for this host (autogenerated by default) |
_CLASS
Constructor and Description |
---|
ERXRemoteNotificationCenter() |
Modifier and Type | Method and Description |
---|---|
static ERXRemoteNotificationCenter |
defaultCenter() |
void |
postLocalNotification(NSNotification notification)
Post a notification to the local app only.
|
void |
postNotification(NSNotification notification)
Overridden to call
postRemoteNotification(NSNotification) . |
protected abstract void |
postRemoteNotification(NSNotification notification)
Post a notification to the remote listeners.
|
static void |
setDefaultCenter(ERXRemoteNotificationCenter center)
Set the default center
|
_getEntry, addObserver, addOmniscientObserver, postNotification, postNotification, removeObserver, removeObserver, removeOmniscientObserver, toString
public static ERXRemoteNotificationCenter defaultCenter()
public static void setDefaultCenter(ERXRemoteNotificationCenter center)
center
- the notification center to use as defaultpublic void postLocalNotification(NSNotification notification)
notification
- the notificationprotected abstract void postRemoteNotification(NSNotification notification)
notification
- the notificationpublic void postNotification(NSNotification notification)
postRemoteNotification(NSNotification)
.postNotification
in class NSNotificationCenter
Copyright © 2002 – 2024 Project Wonder.