niels.grewe@halbordnung.de)Date: Generated at 2025-10-12 08:49:04 +0000
Copyright: (C) 2010 Free Software Foundation, Inc.
- Declared in:
- DBusKit/DKNotificationCenter.h
org.gnustep.openstep.notification
annotation,the value of this annotation will be
used as the name of the notification. Otherwise, the
notification name will be
DKSignal_<InterfaceName>_<SignalName>
. Additionally, D-Bus provides a rather sophisticated
matching mechanism to catch only signal emissions
with a specific signature. This mechanism is available
to applications through the
-addObserver:selector:signal:interface:sender:destination:
method and its more specific variants. Unfortunately, at this time, you need to specify identical match rules when removing the observer again. Every notification from D-Bus carries a reference to a proxy for the object emitting the signal and also guarantees that the following keys are present in the dictionary:
org.gnustep.openstep.notification.key annotations were available.
nil, the value will not
be used to restrict the notifications delivered to the
observer. Notifications are delivered by
calling notifySelector on
observer as a receiver. Neither can be
nil and notifySelector takes
exactly one argument (the notification).
nil. If you want to match the first argument, specify that particular match as the first one and set firstIndex to 0.
[[DKNotificationCenter sessionBusCenter] registerNotificationName: @"DKNameChanged"
asSignal: @"NameOwnerChanged"
inInterface: @"org.freedesktop.DBus"];
would deliver all " NameOwnerChanged "
emissions as notifications named "
DKNameChanged ". The method returns
NO if the notification name has already
been registered.