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: Difference between revisions - iPhone Development Wiki

CFNotificationCenter: Difference between revisions

From iPhone Development Wiki
m (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…')
(No difference)

Revision as of 19:34, 16 November 2009

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