Skip to content

Instantly share code, notes, and snippets.

@zonble
Created July 21, 2009 16:35
Show Gist options
  • Save zonble/151446 to your computer and use it in GitHub Desktop.
Save zonble/151446 to your computer and use it in GitHub Desktop.
# 快快樂樂用 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