Skip to content

Instantly share code, notes, and snippets.

@erkie
Created June 21, 2011 18:27
Using PhotoGrabber
// 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