mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
A minor caveat is that if there are encoding or newline (folder specific) settings in effect for the chosen path, these trump what’s selected in the save dialog. If we wish to solve this, the best would be to update the options (shown in the save panel) based on selected folder/filename (and the settings in effect for that). This closes issue #163.
13 lines
604 B
Objective-C
13 lines
604 B
Objective-C
@class OakEncodingSaveOptionsViewController;
|
|
|
|
@interface OakSavePanel : NSObject
|
|
{
|
|
OakEncodingSaveOptionsViewController* optionsViewController;
|
|
}
|
|
+ (void)showWithPath:(NSString*)aPathSuggestion directory:(NSString*)aDirectorySuggestion fowWindow:(NSWindow*)aWindow delegate:(id)aDelegate encoding:(std::string const&)encoding newlines:(std::string const&)newlines useBOM:(BOOL)useBOM;
|
|
@end
|
|
|
|
@interface NSObject (OakSavePanelDelegate)
|
|
- (void)savePanelDidEnd:(OakSavePanel*)sheet path:(NSString*)aPath encoding:(std::string const&)encoding newlines:(std::string const&)newlines useBOM:(BOOL)useBOM;
|
|
@end
|