Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
CFNotificationCenter - iPhone Development Wiki

CFNotificationCenter

From iPhone Development Wiki
Revision as of 19:34, 16 November 2009 by KennyTM~ (talk | contribs) (Created page with 'CFNotificationCenter is an object representing a local or remote ''notification center'', which is a singleton object of its type that receives ''notifications'' from differe…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CFNotificationCenter is an object representing a local or remote notification center, which is a singleton object of its type that receives notifications from different sources, and distribute to the listeners.

Look up all observers of the local center

You can get the dictionary of all observers in the local center by

CFNotificationCenterRef center = CFNotificationCenterGetLocalCenter();
CFDictionaryRef dict = *(CFDictionaryRef*)(center + 4);
CFShow(dict);

References