You can import Foundation and AppKit modules, and then subclass NSApplication. But perhaps this is not what you are looking for if your pyobjc code is not an entry point for your code. Could you give more details about what you are trying to do with pyobjc?
Here is a quick example of using pyobjc to create a simple status window, without using xcode:
import objc from Foundation import * from AppKit import * from PyObjCTools import AppHelper class MyApp(NSApplication): def finishLaunching(self):
Then you can use py2app to make it redistributable:
from distutils.core import setup import py2app NAME = 'myapp' SCRIPT = 'myapp.py' VERSION = '0.1' ID = 'myapp' plist = dict( CFBundleName = NAME, CFBundleShortVersionString = ' '.join([NAME, VERSION]), CFBundleGetInfoString = NAME, CFBundleExecutable = NAME, CFBundleIdentifier = 'com.yourdn.%s' % ID, LSUIElement = '1',
ryan
source share