| Line 319... |
Line 319... |
| 319 |
syntaxHighlightingEnabled = [[change objectForKey:NSKeyValueChangeNewKey] boolValue];
|
319 |
syntaxHighlightingEnabled = [[change objectForKey:NSKeyValueChangeNewKey] boolValue];
|
| 320 |
if(syntaxHighlightingEnabled) {
|
320 |
if(syntaxHighlightingEnabled) {
|
| 321 |
[self performSelector:@selector(doSyntaxHighlighting) withObject:nil afterDelay:0.1];
|
321 |
[self performSelector:@selector(doSyntaxHighlighting) withObject:nil afterDelay:0.1];
|
| 322 |
} else {
|
322 |
} else {
|
| 323 |
[theTextStorage removeAttribute:NSForegroundColorAttributeName range:NSMakeRange(0, [[theTextStorage string] length])];
|
323 |
[theTextStorage removeAttribute:NSForegroundColorAttributeName range:NSMakeRange(0, [[theTextStorage string] length])];
|
| - |
|
324 |
[self setNeedsDisplayInRect:[self bounds]];
|
| 324 |
}
|
325 |
}
|
| 325 |
|
326 |
|
| 326 |
} else if ([keyPath isEqualToString:enableLineWrappingKey]) {
|
327 |
} else if ([keyPath isEqualToString:enableLineWrappingKey]) {
|
| 327 |
[self updateLineWrappingMode];
|
328 |
[self updateLineWrappingMode];
|
| - |
|
329 |
[self setNeedsDisplayInRect:[self bounds]];
|
| 328 |
|
330 |
|
| 329 |
} else if ([keyPath isEqualToString:showLineNumbersKey]) {
|
331 |
} else if ([keyPath isEqualToString:showLineNumbersKey]) {
|
| 330 |
lineNumberingEnabled = [[change objectForKey:NSKeyValueChangeNewKey] boolValue];
|
332 |
lineNumberingEnabled = [[change objectForKey:NSKeyValueChangeNewKey] boolValue];
|
| 331 |
//TODO implement
|
333 |
//TODO implement
|
| 332 |
if(lineNumberingEnabled) {
|
334 |
if(lineNumberingEnabled) {
|