From 40693a280ab478cf59657507af87dc565a1604d3 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 20 Aug 2008 14:50:17 -0400 Subject: [PATCH] Allow multiple selection and removal of breakpoints * English.lproj/Breakpoints.xib: Allow multiple selection * Source/BreakpointController.m: (removeBreakpoint:): Remove the selection's entirety, instead of the first element --- CHANGES | 1 + English.lproj/Breakpoints.xib | 14 ++++++++++++-- Source/BreakpointController.m | 6 ++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index faf96c5..7f1b24d 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ MacGDBp CHANGE LOG 1.1.1 ##################### - Fix: Breakpoints that were removed would come back, multiplied upon relaunch +- New: Allow multiple selection of breakpoints 1.1 diff --git a/English.lproj/Breakpoints.xib b/English.lproj/Breakpoints.xib index e432635..a29507a 100644 --- a/English.lproj/Breakpoints.xib +++ b/English.lproj/Breakpoints.xib @@ -8,6 +8,7 @@ 352.00 YES + YES @@ -35,7 +36,7 @@ {3.40282e+38, 3.40282e+38} - + 256 YES @@ -188,7 +189,7 @@ 1.700000e+01 - -700416000 + -566198272 1 15 0 @@ -311,6 +312,7 @@ {574, 484} + {{0, 0}, {1680, 1028}} {3.40282e+38, 3.40282e+38} @@ -756,6 +758,14 @@ BSSourceView + + IBProjectSource + Source/BreakpointController.h + + + + BreakpointController + NSWindowController IBUserSource diff --git a/Source/BreakpointController.m b/Source/BreakpointController.m index da8dcb6..0555f2f 100644 --- a/Source/BreakpointController.m +++ b/Source/BreakpointController.m @@ -62,8 +62,10 @@ return; } - Breakpoint *bp = [selection objectAtIndex:0]; - [manager removeBreakpointAt:[bp line] inFile:[bp file]]; + for (Breakpoint *bp in selection) + { + [manager removeBreakpointAt:[bp line] inFile:[bp file]]; + } } #pragma mark NSTableView Delegate -- 2.22.5