Commits

Ronald Oussoren committed 9413ff9

trivial updates

  • Participants
  • Parent commits 2ecb53c

Comments (0)

Files changed (2)

File pyobjc-framework-InterfaceBuilderKit/metadata/metadata.ini

+[InterfaceBuilderKit]
+framework = InterfaceBuilderKit
+DYLD_FRAMEWORK_PATH = /Developer/Library/Frameworks

File pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py.orig

-from Foundation import *
-from Carbon.AppleEvents import kAEISGetURL, kAEInternetSuite
-import struct
-
-def fourCharToInt(code):
-    return struct.unpack('l', code)[0]
-
-class PyDocEventHandler (NSObject):
-    def handleEvent_withReplyEvent_(self, event, replyEvent):
-        print "handler called"
-
-
-def setup():
-    global handler
-
-    handler = PyDocEventHandler.alloc().init()
-    manager = NSAppleEventManager.sharedAppleEventManager()
-    manager.setEventHandler_andSelector_forEventClass_andEventID_(
-            handler, 'handleEvent:withReplyEvent:',
-                fourCharToInt(kAEInternetSuite),
-                fourCharToInt(kAEISGetURL))