Files
cappuccino/Tests/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
..
2014-07-10 11:39:43 -07:00
2010-12-02 11:44:42 -08:00
2013-01-24 00:08:47 +00:00
2013-01-24 09:01:54 +08:00
2011-05-04 19:07:06 +02:00
2012-03-12 20:14:11 +00:00
2013-07-15 10:48:14 +01:00
2013-05-13 22:27:39 -07:00
2010-11-13 02:29:04 +01:00
2013-01-10 23:04:12 -08:00
2013-01-19 02:11:37 +00:00