summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFNet/macsrc
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/plugins/DFNet/macsrc')
-rwxr-xr-xmacosx/plugins/DFNet/macsrc/SockDialog.h5
-rwxr-xr-xmacosx/plugins/DFNet/macsrc/SockDialog.m9
2 files changed, 9 insertions, 5 deletions
diff --git a/macosx/plugins/DFNet/macsrc/SockDialog.h b/macosx/plugins/DFNet/macsrc/SockDialog.h
index 18f10bfd..85b888c3 100755
--- a/macosx/plugins/DFNet/macsrc/SockDialog.h
+++ b/macosx/plugins/DFNet/macsrc/SockDialog.h
@@ -10,8 +10,7 @@
@interface SockDialog : NSWindowController
-{
- IBOutlet NSProgressIndicator *spinningBar;
-}
+@property (weak) IBOutlet NSProgressIndicator *spinningBar;
+
- (IBAction)cancel:(id)sender;
@end
diff --git a/macosx/plugins/DFNet/macsrc/SockDialog.m b/macosx/plugins/DFNet/macsrc/SockDialog.m
index 2795e17f..cbef65b5 100755
--- a/macosx/plugins/DFNet/macsrc/SockDialog.m
+++ b/macosx/plugins/DFNet/macsrc/SockDialog.m
@@ -22,8 +22,7 @@ void SysMessage(const char *fmt, ...)
NSAlert *alert = [NSAlert alertWithMessageText:@"Error" defaultButton:@"Stop" alternateButton:nil otherButton:nil informativeTextWithFormat:@"%@", errString];
[alert setAlertStyle:NSCriticalAlertStyle];
NSInteger result = [alert runModal];
- if (result == NSAlertDefaultReturn)
- {
+ if (result == NSAlertDefaultReturn) {
Class theEmuClass = NSClassFromString(@"EmuThread");
if (theEmuClass) {
[theEmuClass stop];
@@ -81,6 +80,7 @@ void sockDestroyWaitDlg()
}
@implementation SockDialog
+@synthesize spinningBar;
- (IBAction)cancel:(id)sender {
WaitCancel = 1;
@@ -91,4 +91,9 @@ void sockDestroyWaitDlg()
return self = [self initWithWindowNibName:@"SockDialog"];
}
+- (void)awakeFromNib
+{
+ [spinningBar startAnimation:nil];
+}
+
@end