Created by Steven Degutis
- Add PhotoTaker.Framework to your Cocoa project by dragging it into your Frameworks group, adding a Copy Files build phase to your Target, and dragging the Framework from the group to that Copy Files phase.
- Create an instance of SDPhotoTakerSheetController
- Create an object that conforms to
SDPhotoSheetDelegate
. It must contain one and only one method- (void) capturePhotoSheetController:(SDPhotoTakerSheetController*)sheetController didAcceptPhoto:(NSImage*)image
- Use
- (void) beginCaptureSheetWithWindow:(NSWindow*)mainWindow delegate:(id<SDPhotoSheetDelegate>)newDelegate
- Now celebrate, have a drink, you did well, and you're all done.
If you use this code, I would appreciate it if you added me to the credits, with a link to my website. Preferred format is
Photo Taker created by Steven Degutis - www.degutis.org
You can also find my video tutorials and other resources on how to learn programming for the Mac and iPhone, at www.TeachMeCocoa.com
I am available for contracting work, check out my site at hire.degutis.org.