Created
June 21, 2011 18:27
Using PhotoGrabber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to use the Gist from https://gist.github.com/1038480 | |
// By Erik Rothoff Andersson <erikrothoff.com> | |
#import "PhotoGrabber.h" | |
@implementation MyClass | |
- (void)doSomething | |
{ | |
PhotoGrabber *grabber = [[PhotoGrabber alloc] init]; | |
grabber.delegate = self; | |
[grabber grabPhoto]; | |
} | |
- (void)photoGrabbed:(NSImage*)image | |
{ | |
// image is the image from the camera | |
// store it to a file or show, manipulate it, have fun | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment