Created
July 21, 2009 16:35
-
-
Save zonble/151446 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 快快樂樂用 PyObjC 建立 DO | |
import objc | |
from Cocoa import * | |
self.service = NSConnection.rootProxyForConnectionWithRegisteredName_host_("SERVICE_NAME", None) | |
protocol = objc.protocolNamed("PROTOCOL") | |
elf.service.setProtocolForProxy_(protocol) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment