Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # Opens the Window
- import time
- from Foundation import *
- bundle = NSBundle.bundleWithPath_('/Library/Frameworks/MyFramework.framework')
- controller = bundle.classNamed_('MyController').alloc().initWithWindowNibName_('MyWindow')
- controller.showWindow_(0)
- # Hold the window open for a bit
- time.sleep(20.0)
- from AppKit import *
- NSApplicationLoad()
- True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement