Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

NSSavePanel wrapper for image save dialogs, similar to those in Preview.app

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 JFImageSavePanel.xcodeproj Converted to ARC, Modern Objective-C syntax, fixed instantiateNibWith… August 24, 2012
Octocat-spinner-32 JFImageSavePanel
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.mdown Minor readme edits. August 24, 2012
Octocat-spinner-32 screenshot.png
README.mdown

JFImageSavePanel

NSSavePanel wrapper for image save dialogs, similar to those in Preview.app.

Screenshot

JFImageSavePanel

Usage Example

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];

Copyright and License

© 2012 Jason Frame [ jason@onehackoranother.com / @jaz303 ]
MIT Licensed

Something went wrong with that request. Please try again.