29 BOOL _isExtensionHidden;
30 BOOL _canSelectHiddenExtension;
31 BOOL _allowsOtherFileTypes;
32 BOOL _canCreateDirectories;
34 CPArray _allowedFileTypes;
44 if (
self = [super
init])
46 _canCreateDirectories = YES;
57 if (typeof window[
"cpSavePanel"] ===
"function")
59 var resultObject = window.cpSavePanel({
66 result = resultObject.button;
68 _URL = result ? [
CPURL URLWithString:resultObject.URL] : nil;
73 var documentName = window.prompt(
"Document Name:"),
74 result = documentName !== null;
76 _URL = result ? [[
self class] proposedFileURLWithDocumentName:documentName] : nil;
96 return _isExtensionHidden;
102 - (void)setExtensionHidden:(BOOL)aValue
104 _isExtensionHidden = aValue;
112 return _canSelectHiddenExtension;
118 - (void)setCanSelectHiddenExtension:(BOOL)aValue
120 _canSelectHiddenExtension = aValue;
128 return _allowsOtherFileTypes;
134 - (void)setAllowsOtherFileTypes:(BOOL)aValue
136 _allowsOtherFileTypes = aValue;
144 return _canCreateDirectories;
150 - (void)setCanCreateDirectories:(BOOL)aValue
152 _canCreateDirectories = aValue;
160 return _allowedFileTypes;
166 - (void)setAllowedFileTypes:(CPArray)aValue
168 _allowedFileTypes = aValue;
BOOL allowsOtherFileTypes()
CPArray allowedFileTypes()
The main run loop for the application.
CPRunLoop currentRunLoop()
BOOL canSelectHiddenExtension()
CPDate limitDateForMode:(CPString aMode)
BOOL canCreateDirectories()