Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/l/i/lightning-HEAD/link/Lightning/PMController.py   lightning(Download)
 
        # Listen to the NSApplicationWillTerminateNotification.
        center = NSNotificationCenter.defaultCenter()
        center.addObserver_selector_name_object_(self, "applicationWillTerminateNotification:", NSApplicationWillTerminateNotification, None)
 

src/a/p/APAF-HEAD/apaf/ui/darwin.py   APAF(Download)
        sel = objc.selector(self.torHasLoaded, signature='v@:')
 
        ns = AppKit.NSNotificationCenter.defaultCenter()
        ns.addObserver_selector_name_object_(self, sel, TorFinishedLoadNotification, None)