From bfe5afaddd66b41dc2e73aca6439cfcae0768b45 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Fri, 3 Jun 2011 00:05:30 -0400 Subject: [PATCH] Whitespace cleanup. --- AppKit/CPArrayController.j | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index 783c0c3f0..284688ce5 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -828,26 +828,26 @@ */ - (void)removeObject:(id)object { - [self willChangeValueForKey:@"content"]; + [self willChangeValueForKey:@"content"]; - /* - See _disableSetContent explanation in addObject:. - */ - _disableSetContent = YES; - [_contentObject removeObject:object]; - _disableSetContent = NO; + // See _disableSetContent explanation in addObject:. + _disableSetContent = YES; - if (_filterPredicate === nil || [_filterPredicate evaluateWithObject:object]) - { + [_contentObject removeObject:object]; + + _disableSetContent = NO; + + if (_filterPredicate === nil || [_filterPredicate evaluateWithObject:object]) + { // selectionIndexes change notification will be fired as a result of the // content change. Don't fire manually. var pos = [_arrangedObjects indexOfObject:object]; [_arrangedObjects removeObjectAtIndex:pos]; [_selectionIndexes shiftIndexesStartingAtIndex:pos by:-1]; - } + } - [self didChangeValueForKey:@"content"]; + [self didChangeValueForKey:@"content"]; } /*!