mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-18 16:33:31 +00:00
31 lines
415 B
Plaintext
31 lines
415 B
Plaintext
|
|
@import <AppKit/CPPanel.j>
|
|
|
|
|
|
@implementation CPSavePanel : CPPanel
|
|
{
|
|
Object result;
|
|
}
|
|
|
|
+ (id)savePanel
|
|
{
|
|
return [[CPSavePanel alloc] init];
|
|
}
|
|
|
|
- (CPInteger)runModal
|
|
{
|
|
// FIXME: Is this correct???
|
|
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
|
|
|
result = window.cpSavePanel();
|
|
|
|
return result.button;
|
|
}
|
|
|
|
- (CPURL)URL
|
|
{
|
|
return [CPURL URLWithString:result.URL];
|
|
}
|
|
|
|
@end
|