We Recommend

Programming in Objective-C Programming in Objective-C
Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming. The book makes no assumption about prior experience with object-oriented programming languages or with the C language (upon which Objective-C is based). And because of this, both novice and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C.


Posted By

sudarkoff on 10/31/06


Tagged

cocoa mac movie quicktime


Versions (?)


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.