Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. # Opens the Window
  4.  
  5. import time
  6. from Foundation import *
  7.  
  8. bundle = NSBundle.bundleWithPath_('/Library/Frameworks/MyFramework.framework')
  9. controller = bundle.classNamed_('MyController').alloc().initWithWindowNibName_('MyWindow')
  10. controller.showWindow_(0)
  11.  
  12. # Hold the window open for a bit
  13. time.sleep(20.0)
  14.  
  15. from AppKit import *
  16. NSApplicationLoad()
  17. True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement