diff options
Diffstat (limited to 'lvc/widgets/osx/helpers.py')
-rw-r--r-- | lvc/widgets/osx/helpers.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lvc/widgets/osx/helpers.py b/lvc/widgets/osx/helpers.py index e4aa23a..8f2e4c0 100644 --- a/lvc/widgets/osx/helpers.py +++ b/lvc/widgets/osx/helpers.py @@ -35,6 +35,7 @@ import traceback from Foundation import * from objc import nil + class NotificationForwarder(NSObject): """Forward notifications from a Cocoa object to a python class. """ @@ -70,7 +71,7 @@ class NotificationForwarder(NSObject): self.callback_map[name] = callback self.center.addObserver_selector_name_object_(self, 'observe:', name, - self.nsobject) + self.nsobject) def disconnect(self, name=None): if name is not None: @@ -91,5 +92,5 @@ class NotificationForwarder(NSObject): callback(notification) except: logging.warn("Callback for %s raised exception:%s\n", - name.encode('utf-8'), - traceback.format_exc()) + name.encode('utf-8'), + traceback.format_exc()) |