Posted By

sudarkoff on 10/31/06


Tagged

cocoa mac movie quicktime


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

fernyb
davidsi


Open a movie in QuickTime via Cocoa


 / Published in: Objective C
 

URL: http://clickablebliss.com/blog/2006/09/08/open_a_movie_in_quicktime_via_cocoa/

  1. - (IBAction)watchMovie:(id)sender
  2. {
  3. NSURL *movieURL = [NSURL URLWithString:
  4. @"http://media.clickablebliss.com/billable/introduction_small.mov"];
  5. [[NSWorkspace sharedWorkspace] openURLs:[NSArray arrayWithObjects:movieURL, nil]
  6. withAppBundleIdentifier:@"com.apple.quicktimeplayer"
  7. options:nil
  8. additionalEventParamDescriptor:nil
  9. launchIdentifiers:nil];
  10. }

Report this snippet  

You need to login to post a comment.