]> err.no Git - sope/blob - sopex/SOPEX/SOPEXAuthPanel.m
fixed a warning
[sope] / sopex / SOPEX / SOPEXAuthPanel.m
1 // $Id: SOPEXAuthPanel.m 1 2004-08-20 11:17:52Z znek $
2 //
3 //  SOPEXAuthPanel.m SxCallTest
4 //
5 //  Created by Helge Hess on Sun Jun 30 2002.
6 //  Copyright (c) 2002 SKYRIX Software AG. All rights reserved.
7
8 #import "SOPEXAuthPanel.h"
9
10 @implementation SOPEXAuthPanel
11
12 - (void)dealloc {
13   [super dealloc];
14 }
15
16 /* accessors */
17
18 /* modal delegate */
19
20 - (void)authSheetDidEnd:(NSWindow *)_sheet
21   returnCode:(int)_returnCode
22   contextInfo:(void *)_info 
23 {
24 }
25
26 /* operations */
27
28 - (void)doLoginForWindow:(NSWindow *)_win {
29   [NSApp beginSheet:self->window
30          modalForWindow:_win
31          modalDelegate:self
32          didEndSelector:@selector(authSheetDidEnd:returnCode:contextInfo:)
33          contextInfo:NULL];
34   [NSApp runModalForWindow:_win];
35   //[NSApp runModalForWindow:self->window];
36
37   [NSApp endSheet:self->window];
38   [self->window orderOut:self];
39 }
40
41 - (IBAction)login:(id)sender {
42   [NSApp stopModal];
43 }
44
45 - (IBAction)cancel:(id)sender {
46   [NSApp stopModal];
47 }
48
49 @end /* SOPEXAuthPanel */