NSSavePanel wrapper for image save dialogs, similar to those in Preview.app.
JFImageSavePanel *panel = [JFImageSavePanel savePanel];
NSImage *image = [[NSImage alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://..."]];
// This is the default image type, which can be changed.
// Possible values: kUTTypeJPEG, kUTTypeJPEG2000, kUTTypePNG, kUTTypeTIFF.
[panel setImageType:kUTTypeJPEG];
// Image will be saved to selected path if 'OK' button is pressed
[panel runModalForImage:image error:NULL];
© 2012 Jason Frame [ [email protected] / @jaz303 ]
MIT Licensed