Created
August 31, 2012 14:05
-
-
Save mikeabdullah/3553090 to your computer and use it in GitHub Desktop.
Suggesting a previous location to a save panel
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
NSSavePanel *savePanel = [NSSavePanel savePanel]; | |
NSURL *url = [self mostRecentlySavedToURL]; | |
[savePanel setDirectoryURL:[url URLByDeletingLastPathComponent]]; | |
[savePanel setNameFieldStringValue:[url lastPathComponent]]; | |
// Finish configuring and run the save panel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment