Skip to content
Browse files

remove panther-specific code

  • Loading branch information...
1 parent 091cba3 commit 39703deb8451bd76b38a24a29d41b9aa0c74a9d0 Zachary Schneirov committed Jan 31, 2010
Showing with 4 additions and 10 deletions.
  1. +4 −10 LinkingEditor_Indentation.m
View
14 LinkingEditor_Indentation.m
@@ -16,7 +16,7 @@ - (IBAction)shiftLeftAction:(id)sender {
}
NSRange selectedRange;
- NSEnumerator *enumerator = [RunningTigerAppKitOrHigher ? [self selectedRanges] : [NSArray arrayWithObject:[NSValue valueWithRange:[self selectedRange]]] objectEnumerator];
+ NSEnumerator *enumerator = [[self selectedRanges] objectEnumerator];
id item;
int sumOfAllCharactersRemoved = 0;
@@ -111,10 +111,7 @@ - (IBAction)shiftLeftAction:(id)sender {
NSBeep();
}
if ([updatedSelectionsArray count] > 0) {
- if (RunningTigerAppKitOrHigher)
- [textView setSelectedRanges:updatedSelectionsArray];
- else
- [textView setSelectedRange:[[updatedSelectionsArray objectAtIndex:0] rangeValue]];
+ [textView setSelectedRanges:updatedSelectionsArray];
}
[updatedSelectionsArray release];
}
@@ -146,7 +143,7 @@ - (IBAction)shiftRightAction:(id)sender {
}
int replacementStringLength = [replacementString length];
- NSEnumerator *enumerator = [RunningTigerAppKitOrHigher ? [self selectedRanges] : [NSArray arrayWithObject:[NSValue valueWithRange:[self selectedRange]]] objectEnumerator];
+ NSEnumerator *enumerator = [[self selectedRanges] objectEnumerator];
id item;
int sumOfAllCharactersInserted = 0;
@@ -197,10 +194,7 @@ - (IBAction)shiftRightAction:(id)sender {
}
if ([updatedSelectionsArray count] > 0) {
- if (RunningTigerAppKitOrHigher)
- [textView setSelectedRanges:updatedSelectionsArray];
- else
- [textView setSelectedRange:[[updatedSelectionsArray objectAtIndex:0] rangeValue]];
+ [textView setSelectedRanges:updatedSelectionsArray];
}
[replacementString release];
[updatedSelectionsArray release];

0 comments on commit 39703de

Please sign in to comment.
Something went wrong with that request. Please try again.