Examples of addObserver_selector_name_object()


Examples of org.rococoa.cocoa.foundation.NSNotificationCenter.addObserver_selector_name_object()

    }   
   
    @Test public void testNotifications() {
        NSNotificationCenter notificationCentre = NSNotificationCenter.CLASS.defaultCenter();
        final ID observer = proxy.id();
        notificationCentre.addObserver_selector_name_object(
                observer,
                Foundation.selector("notify:"),
                "MyNotification",
                null);
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSNotificationCenter.addObserver_selector_name_object()

   
    @Test public void testMemoryManagement() {
        // we were autorelease'ing the proxy - so that this failed
        NSNotificationCenter notificationCentre = NSNotificationCenter.CLASS.defaultCenter();
        final ID observer = proxy.id();
        notificationCentre.addObserver_selector_name_object(
                observer,
                Foundation.selector("notify:"),
                "MyNotification",
                null);
        pool.drain();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.