Skip to content

Commit 44e9545

Browse files
committed
Updated src copyright header, updated some deprecated constants, rm unused code
1 parent 89e1484 commit 44e9545

7 files changed

+15
-16
lines changed

Diff for: FastDMG/FastDMGAppDelegate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2012-2021, Sveinbjorn Thordarson <[email protected]>
2+
Copyright (c) 2012-2024, Sveinbjorn Thordarson <[email protected]>
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,

Diff for: FastDMG/FastDMGAppDelegate.m

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2012-2021, Sveinbjorn Thordarson <[email protected]>
2+
Copyright (c) 2012-2024, Sveinbjorn Thordarson <[email protected]>
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,
@@ -59,7 +59,7 @@ + (void)initialize {
5959
}
6060

6161
+ (NSDictionary *)defaults {
62-
return @{ @"InBackground": @(YES),
62+
return @{ @"RunInBackground": @(YES),
6363
@"OpenDiskImage": @(YES),
6464
@"QuitAfterMounting": @(YES) };
6565
}
@@ -135,10 +135,9 @@ - (IBAction)openFiles:(id)sender {
135135
[oPanel setAllowsMultipleSelection:YES];
136136
[oPanel setCanChooseFiles:YES];
137137
[oPanel setCanChooseDirectories:NO];
138-
//[oPanel setAllowedFileTypes:@"dmg", @"com.apple.disk-image"];
139-
138+
140139
// Run it modally
141-
if ([oPanel runModal] == NSFileHandlingPanelOKButton) {
140+
if ([oPanel runModal] == NSModalResponseOK) {
142141
for (NSURL *url in [oPanel URLs]) {
143142
[self mountDiskImage:[url path]];
144143
}
@@ -215,7 +214,9 @@ - (void)mountDiskImage:(NSString *)diskImagePath {
215214
} else {
216215
// Show in Finder
217216
DLog(@"Revealing '%@' in Finder", mountPoint);
218-
[[NSWorkspace sharedWorkspace] openFile:mountPoint withApplication:@"Finder" andDeactivate:YES];
217+
[[NSWorkspace sharedWorkspace] openFile:mountPoint
218+
withApplication:@"Finder"
219+
andDeactivate:YES];
219220
}
220221
}
221222
}
@@ -291,7 +292,7 @@ - (void)handleFailure:(NSString *)filePath {
291292
NSAlert *alert = [NSAlert new];
292293
[alert addButtonWithTitle:@"Try DiskImageMounter"];
293294
[alert addButtonWithTitle:@"Abort"];
294-
[alert setAlertStyle:NSWarningAlertStyle];
295+
[alert setAlertStyle:NSAlertStyleWarning];
295296
[alert setMessageText:@"Unable to mount disk image"];
296297

297298
NSString *msg = [NSString stringWithFormat:@"FastDMG failed to mount \

Diff for: FastDMG/FastDMGWindowController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2012-2021, Sveinbjorn Thordarson <[email protected]>
2+
Copyright (c) 2012-2024, Sveinbjorn Thordarson <[email protected]>
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,

Diff for: FastDMG/FastDMGWindowController.m

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2012-2021, Sveinbjorn Thordarson <[email protected]>
2+
Copyright (c) 2012-2024, Sveinbjorn Thordarson <[email protected]>
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,
@@ -51,9 +51,7 @@ - (void)windowDidLoad {
5151
}
5252

5353
- (void)windowWillClose:(NSNotification *)notification {
54-
// if ([[NSUserDefaults standardUserDefaults] boolForKey:@"QuitAfterMounting"]) {
55-
[[NSApplication sharedApplication] terminate:self];
56-
// }
54+
[[NSApplication sharedApplication] terminate:self];
5755
}
5856

5957
@end

Diff for: FastDMG/main.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2012-2021, Sveinbjorn Thordarson <[email protected]>
2+
Copyright (c) 2012-2024, Sveinbjorn Thordarson <[email protected]>
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without modification,

Diff for: LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2012-2021, Sveinbjorn Thordarson <[email protected]>
3+
Copyright (c) 2012-2024, Sveinbjorn Thordarson <[email protected]>
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ FastDMG will then take care of mounting `.dmg` disk images when you open them i
5757

5858
## BSD License
5959

60-
Copyright (C) 2012-2021 Sveinbjorn Thordarson &lt;<a href="mailto:">[email protected]</a>&gt;
60+
Copyright (C) 2012-2024 Sveinbjorn Thordarson &lt;<a href="mailto:">[email protected]</a>&gt;
6161

6262
Redistribution and use in source and binary forms, with or without modification,
6363
are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)