Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove panther-specific code

  • Loading branch information...
commit 39703deb8451bd76b38a24a29d41b9aa0c74a9d0 1 parent 091cba3
Zachary Schneirov authored

Showing 1 changed file with 4 additions and 10 deletions. Show diff stats Hide diff stats

  1. +4 10 LinkingEditor_Indentation.m
14 LinkingEditor_Indentation.m
@@ -16,7 +16,7 @@ - (IBAction)shiftLeftAction:(id)sender {
16 16 }
17 17 NSRange selectedRange;
18 18
19   - NSEnumerator *enumerator = [RunningTigerAppKitOrHigher ? [self selectedRanges] : [NSArray arrayWithObject:[NSValue valueWithRange:[self selectedRange]]] objectEnumerator];
  19 + NSEnumerator *enumerator = [[self selectedRanges] objectEnumerator];
20 20
21 21 id item;
22 22 int sumOfAllCharactersRemoved = 0;
@@ -111,10 +111,7 @@ - (IBAction)shiftLeftAction:(id)sender {
111 111 NSBeep();
112 112 }
113 113 if ([updatedSelectionsArray count] > 0) {
114   - if (RunningTigerAppKitOrHigher)
115   - [textView setSelectedRanges:updatedSelectionsArray];
116   - else
117   - [textView setSelectedRange:[[updatedSelectionsArray objectAtIndex:0] rangeValue]];
  114 + [textView setSelectedRanges:updatedSelectionsArray];
118 115 }
119 116 [updatedSelectionsArray release];
120 117 }
@@ -146,7 +143,7 @@ - (IBAction)shiftRightAction:(id)sender {
146 143 }
147 144 int replacementStringLength = [replacementString length];
148 145
149   - NSEnumerator *enumerator = [RunningTigerAppKitOrHigher ? [self selectedRanges] : [NSArray arrayWithObject:[NSValue valueWithRange:[self selectedRange]]] objectEnumerator];
  146 + NSEnumerator *enumerator = [[self selectedRanges] objectEnumerator];
150 147
151 148 id item;
152 149 int sumOfAllCharactersInserted = 0;
@@ -197,10 +194,7 @@ - (IBAction)shiftRightAction:(id)sender {
197 194 }
198 195
199 196 if ([updatedSelectionsArray count] > 0) {
200   - if (RunningTigerAppKitOrHigher)
201   - [textView setSelectedRanges:updatedSelectionsArray];
202   - else
203   - [textView setSelectedRange:[[updatedSelectionsArray objectAtIndex:0] rangeValue]];
  197 + [textView setSelectedRanges:updatedSelectionsArray];
204 198 }
205 199 [replacementString release];
206 200 [updatedSelectionsArray release];

0 comments on commit 39703de

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