Files
cappuccino/Foundation
Alexandre Wilhelm fe25dbd872 New: added method addObserverForName:object::usingBlock: in CPNotificationCenter
Previously, the method addObserverForName:object::usingBlock: didn't exist in Cappuccino.
Now it does.

To observe, you need to use the method - (id <CPObject>)addObserverForName:(CPString)aNotificationName object:(id)anObject usingBlock:(Function)block

To unregister observations, you pass the object returned by this method to removeObserver:. You must invoke removeObserver: or removeObserver:name:object:.

Test /Tests/Foundation/CPNotificationCenterTest.j

Fixed #2259
2014-11-20 15:24:23 -08:00
..
2012-05-13 14:26:19 +01:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2013-01-20 19:10:41 +00:00
2011-05-04 19:07:06 +02:00
2010-12-26 01:34:37 +02:00
2011-11-23 00:28:27 +00:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2013-07-26 02:08:14 -04:00
2013-05-16 15:02:45 -04:00
2013-03-07 22:18:59 -05:00
2014-06-23 16:13:36 -04:00
2010-12-16 19:16:33 +02:00
2010-12-16 19:16:33 +02:00
2008-09-04 03:52:20 -07:00
2012-07-13 01:28:38 +01:00