summaryrefslogtreecommitdiff
path: root/src/nsterm.h
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2013-03-16 14:52:12 +0100
committerJan Djärv <jan.h.d@swipnet.se>2013-03-16 14:52:12 +0100
commit8f2906f551da4a06c0097887e8ad61b8144baeac (patch)
treed262fad9285dde83ce3cc99777007de5091296d2 /src/nsterm.h
parent3f53a2bd1aeabffce2dcbb29cb4e36eb46ca6240 (diff)
downloademacs-8f2906f551da4a06c0097887e8ad61b8144baeac.tar.gz
* nsfns.m (ns_filename_from_panel, ns_directory_from_panel): New
functions. (Fns_read_file_name): ret is BOOL. If ! dir_only_p, don't choose directories. If filename is nil, get directory name. Use getFilename and getDirectory. (getFilename, getDirectory): New methods for EmacsSavePanel and EmacsOpenPanel. (ok:): In EmacsOpenPanel, if we can't choose directories, just return. * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename and getDirectory. Fixes: debbugs:13932
Diffstat (limited to 'src/nsterm.h')
-rw-r--r--src/nsterm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index 41dbaf3c0f7..6bd04b96684 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -267,10 +267,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
@interface EmacsSavePanel : NSSavePanel
{
}
+- (NSString *) getFilename;
+- (NSString *) getDirectory;
@end
@interface EmacsOpenPanel : NSOpenPanel
{
}
+- (NSString *) getFilename;
+- (NSString *) getDirectory;
@end
@interface EmacsFileDelegate : NSObject