diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-10-08 16:50:14 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-10-08 16:50:14 +0000 |
| commit | 0bc2020828acaab665608b9d274ec5200af018a0 (patch) | |
| tree | 2ab1c2cb1fb0607f9f5187cb631b867130231830 /macosx/plugins/DFNet/macsrc | |
| parent | b3c099a3146fe08b1f19fbe99fe599d68eb44a72 (diff) | |
| download | pcsxr-0bc2020828acaab665608b9d274ec5200af018a0.tar.gz | |
OS X: DFNet improvements and fixes.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91802 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFNet/macsrc')
| -rwxr-xr-x | macosx/plugins/DFNet/macsrc/SockDialog.h | 5 | ||||
| -rwxr-xr-x | macosx/plugins/DFNet/macsrc/SockDialog.m | 9 |
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 |
