mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
More desktop differences.
Reviewed by me.
This commit is contained in:
1 parent
f109313d32
commit
ebbf3c4576
1 file changed
+44
@@ -0,0 +1,44 @@
|
||||
|
||||
@import <AppKit/CPPanel.j>
|
||||
|
||||
|
||||
@implementation CPSavePanel : CPPanel
|
||||
{
|
||||
JSObject _savePanel;
|
||||
}
|
||||
|
||||
+ (id)savePanel
|
||||
{
|
||||
return [[CPSavePanel alloc] init];
|
||||
}
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if (self = [super init])
|
||||
_savePanel = window.application.createSavePanel();
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (CPInteger)runModal
|
||||
{
|
||||
// FIXME: Is this correct???
|
||||
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
||||
|
||||
return _savePanel.runModal();
|
||||
}
|
||||
|
||||
- (CPInteger)runModalForDirectory:(CPString)anAbsoluteDirectoryPath
|
||||
{
|
||||
// FIXME: Is this correct???
|
||||
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
||||
|
||||
return _savePanel.runModal(anAbsoluteDirectoryPath);
|
||||
}
|
||||
|
||||
- (CPString)filename
|
||||
{
|
||||
return _savePanel.filename;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user