3 c = SCNSObject("NSNotificationCenter", "defaultCenter");
4 o = SCNSObject("NSObject", "init", []);
7 // SCNSObject.registerNotification(notificationName, func, obj=this);
8 o.registerNotification('MyNotification', { arg notificationName, nsNotification, nsObj;
10 notification = nsNotification.asNSReturn;
11 [notificationName, notification.className, nsObj.asNSReturn.invoke("hash")].postln;
16 c.invoke("postNotificationName:object:", ["MyNotification", o], true);
18 d = SCNSObject("NSObject", "init", []);
20 c.invoke("postNotificationName:object:", ["MyNotification", d], true);
22 [o, c, d].do(_.release);