Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <plist version="1.0">
  4. <dict>
  5. <key>com.apple.security.app-sandbox</key>
  6. <true/>
  7. <key>com.apple.security.scripting-targets</key>
  8. <dict>
  9. <key>com.apple.CocoaExamples.Sketch</key>
  10. <array>
  11. <string>com.apple.CocoaExamples.Sketch.Draw</string>
  12. </array>
  13. </dict>
  14. </dict>
  15. </plist>
  16.  
  17. #import "ViewController.h"
  18. #import "Sketch.h"
  19.  
  20. @implementation ViewController
  21. - (IBAction)draw:(id)sender {
  22. SketchApplication *sketch = [SBApplication applicationWithBundleIdentifier:@"com.apple.CocoaExamples.Sketch"];
  23. if (![sketch isKindOfClass:[NSClassFromString(@"SketchApplication") class]]) {
  24. NSLog(@"Unable to get SketchApplication for Sketch");
  25. }
  26. }
  27. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement