Added support to use the Escape key for the Skip button on the Overwrite dialog

This commit is contained in:
Robert McGovern 2009-11-15 15:54:55 +01:00
parent b208b2e332
commit 6de31455d3
3 changed files with 49 additions and 15 deletions

View File

@ -326,7 +326,7 @@
<key>_historyCapacity</key> <key>_historyCapacity</key>
<integer>0</integer> <integer>0</integer>
<key>bookmark</key> <key>bookmark</key>
<string>D488BE2C10B04A8A00B3451C</string> <string>D488BE3510B04D8D00B3451C</string>
<key>history</key> <key>history</key>
<array> <array>
<string>D4A4963610541A1C00BE38AE</string> <string>D4A4963610541A1C00BE38AE</string>

View File

@ -16,9 +16,9 @@
}; };
256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */ = { 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */ = {
uiCtxt = { uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1167, 2223}}"; sepNavIntBoundsRect = "{{0, 0}, {1167, 2158}}";
sepNavSelRange = "{6008, 0}"; sepNavSelRange = "{5316, 0}";
sepNavVisRange = "{4952, 1164}"; sepNavVisRange = "{4808, 1277}";
sepNavWindowFrame = "{{85, 21}, {877, 731}}"; sepNavWindowFrame = "{{85, 21}, {877, 731}}";
}; };
}; };
@ -305,6 +305,9 @@
D488BE2610B03F8900B3451C /* PBXTextBookmark */ = D488BE2610B03F8900B3451C /* PBXTextBookmark */; D488BE2610B03F8900B3451C /* PBXTextBookmark */ = D488BE2610B03F8900B3451C /* PBXTextBookmark */;
D488BE2710B03F8900B3451C /* PBXTextBookmark */ = D488BE2710B03F8900B3451C /* PBXTextBookmark */; D488BE2710B03F8900B3451C /* PBXTextBookmark */ = D488BE2710B03F8900B3451C /* PBXTextBookmark */;
D488BE2C10B04A8A00B3451C /* PBXTextBookmark */ = D488BE2C10B04A8A00B3451C /* PBXTextBookmark */; D488BE2C10B04A8A00B3451C /* PBXTextBookmark */ = D488BE2C10B04A8A00B3451C /* PBXTextBookmark */;
D488BE2F10B04D3C00B3451C /* PBXTextBookmark */ = D488BE2F10B04D3C00B3451C /* PBXTextBookmark */;
D488BE3210B04D4600B3451C /* PBXTextBookmark */ = D488BE3210B04D4600B3451C /* PBXTextBookmark */;
D488BE3510B04D8D00B3451C /* PBXTextBookmark */ = D488BE3510B04D8D00B3451C /* PBXTextBookmark */;
D4A4963610541A1C00BE38AE = D4A4963610541A1C00BE38AE /* PBXTextBookmark */; D4A4963610541A1C00BE38AE = D4A4963610541A1C00BE38AE /* PBXTextBookmark */;
D4A4965D105433E000BE38AE = D4A4965D105433E000BE38AE /* PBXTargetBookmark */; D4A4965D105433E000BE38AE = D4A4965D105433E000BE38AE /* PBXTargetBookmark */;
D4A496731054350F00BE38AE = D4A496731054350F00BE38AE /* PBXTextBookmark */; D4A496731054350F00BE38AE = D4A496731054350F00BE38AE /* PBXTextBookmark */;
@ -1627,7 +1630,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 84"; name = "QuietUnrarAppDelegate.m: 84";
rLen = 0; rLen = 0;
rLoc = 6116; rLoc = 6178;
rType = 0; rType = 0;
vrLen = 1164; vrLen = 1164;
vrLoc = 1267; vrLoc = 1267;
@ -2164,7 +2167,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 113"; name = "QuietUnrarAppDelegate.m: 113";
rLen = 0; rLen = 0;
rLoc = 6109; rLoc = 6171;
rType = 0; rType = 0;
vrLen = 1404; vrLen = 1404;
vrLoc = 2538; vrLoc = 2538;
@ -2194,7 +2197,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 129"; name = "QuietUnrarAppDelegate.m: 129";
rLen = 0; rLen = 0;
rLoc = 5487; rLoc = 5549;
rType = 0; rType = 0;
vrLen = 1291; vrLen = 1291;
vrLoc = 3371; vrLoc = 3371;
@ -2294,7 +2297,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 140"; name = "QuietUnrarAppDelegate.m: 140";
rLen = 0; rLen = 0;
rLoc = 5482; rLoc = 5544;
rType = 0; rType = 0;
vrLen = 991; vrLen = 991;
vrLoc = 4329; vrLoc = 4329;
@ -2344,7 +2347,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 169"; name = "QuietUnrarAppDelegate.m: 169";
rLen = 0; rLen = 0;
rLoc = 6116; rLoc = 6178;
rType = 0; rType = 0;
vrLen = 1173; vrLen = 1173;
vrLoc = 4625; vrLoc = 4625;
@ -2354,7 +2357,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 157"; name = "QuietUnrarAppDelegate.m: 157";
rLen = 0; rLen = 0;
rLoc = 5751; rLoc = 5813;
rType = 0; rType = 0;
vrLen = 1217; vrLen = 1217;
vrLoc = 4625; vrLoc = 4625;
@ -2404,7 +2407,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 169"; name = "QuietUnrarAppDelegate.m: 169";
rLen = 0; rLen = 0;
rLoc = 6110; rLoc = 6172;
rType = 0; rType = 0;
vrLen = 1214; vrLen = 1214;
vrLoc = 4684; vrLoc = 4684;
@ -2444,7 +2447,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 163"; name = "QuietUnrarAppDelegate.m: 163";
rLen = 0; rLen = 0;
rLoc = 5896; rLoc = 5958;
rType = 0; rType = 0;
vrLen = 1169; vrLen = 1169;
vrLoc = 4779; vrLoc = 4779;
@ -2454,7 +2457,7 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 163"; name = "QuietUnrarAppDelegate.m: 163";
rLen = 0; rLen = 0;
rLoc = 5896; rLoc = 5958;
rType = 0; rType = 0;
vrLen = 1214; vrLen = 1214;
vrLoc = 4734; vrLoc = 4734;
@ -2464,11 +2467,41 @@
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */; fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 168"; name = "QuietUnrarAppDelegate.m: 168";
rLen = 0; rLen = 0;
rLoc = 6008; rLoc = 6070;
rType = 0; rType = 0;
vrLen = 1164; vrLen = 1164;
vrLoc = 4952; vrLoc = 4952;
}; };
D488BE2F10B04D3C00B3451C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 150";
rLen = 0;
rLoc = 5316;
rType = 0;
vrLen = 1276;
vrLoc = 4808;
};
D488BE3210B04D4600B3451C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 150";
rLen = 0;
rLoc = 5319;
rType = 0;
vrLen = 1277;
vrLoc = 4808;
};
D488BE3510B04D8D00B3451C /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 256AC3D90F4B6AC300CF3369 /* QuietUnrarAppDelegate.m */;
name = "QuietUnrarAppDelegate.m: 150";
rLen = 0;
rLoc = 5316;
rType = 0;
vrLen = 1277;
vrLoc = 4808;
};
D4A4940C1054167200BE38AE /* QuietUnrar */ = { D4A4940C1054167200BE38AE /* QuietUnrar */ = {
isa = PBXExecutable; isa = PBXExecutable;
activeArgIndices = ( activeArgIndices = (

View File

@ -146,7 +146,8 @@ int callbackFunction(UINT message, LPARAM userData, LPARAM parameterOne, LPARAM
NSAlert *alert = [[NSAlert alloc] init]; NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:@"Overwrite"]; [alert addButtonWithTitle:@"Overwrite"];
[alert addButtonWithTitle:@"Skip"]; NSButton * skipButton = [alert addButtonWithTitle:@"Skip"];
[skipButton setKeyEquivalent:@"\e"];
[alert setMessageText:[NSString stringWithFormat:@"Overwrite %@?", filename]]; [alert setMessageText:[NSString stringWithFormat:@"Overwrite %@?", filename]];
[alert setInformativeText:[NSString stringWithFormat:@"The file already exists. Do you wish to extract it again, overwriting the original file?", filename]]; [alert setInformativeText:[NSString stringWithFormat:@"The file already exists. Do you wish to extract it again, overwriting the original file?", filename]];
[alert setAlertStyle:NSWarningAlertStyle]; [alert setAlertStyle:NSWarningAlertStyle];