Examples of NSNotification


Examples of com.webobjects.foundation.NSNotification

        if(mainUserProps != null) {
          urls.add(0,urls.remove(urls.size()-1));
        }
        urls.add(0,urls.remove(urls.size()-1));
        // System.out.print(urls);
        NSNotificationCenter.defaultCenter().postNotification(new NSNotification(AllBundlesLoadedNotification, NSKeyValueCoding.NullValue));
      }
    }
View Full Code Here

Examples of ns.foundation.NSNotification

  public void testPostNotificationNSNotification() {
    NSNotificationCenter nc = NSNotificationCenter.defaultCenter();
    TestObserver observer = new TestObserver();
    nc.addObserver(observer, new NSSelector<Void>("invoked", new Class[] { NSNotification.class }), "test", null);
    NSNotification notification = new NSNotification("test", null);
    nc.postNotification(notification);
    assertTrue(observer.invoked);
  }
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSNotification

                observer,
                Foundation.selector("notify:"),
                "MyNotification",
                null);

        NSNotification notification = NSNotification.CLASS.notificationWithName_object("MyNotification", null);
       
        assertNull(implementor.arg);
        notificationCentre.postNotification(notification);            
        assertEquals(notification, implementor.arg);
        notificationCentre.removeObserver(observer);
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSNotification

                "MyNotification",
                null);
        pool.drain();
        pool = NSAutoreleasePool.new_();

        NSNotification notification = NSNotification.CLASS.notificationWithName_object("MyNotification", null);       
        notificationCentre.postNotification(notification);
        notificationCentre.removeObserver(observer);
    }
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.