aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-21 07:00:12 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-21 07:00:12 +0000
commitd80515ceb26102a1fe06ed0e55e86dcb1778aa0e (patch)
treeb7882bdcdb069ba8acceda3966d760d52682f2b1
parent238459c935536526bbada41e4f95bf783a33bab1 (diff)
downloadsequelpro-d80515ceb26102a1fe06ed0e55e86dcb1778aa0e.tar.gz
sequelpro-d80515ceb26102a1fe06ed0e55e86dcb1778aa0e.tar.bz2
sequelpro-d80515ceb26102a1fe06ed0e55e86dcb1778aa0e.zip
• make - (unsigned)lineNumberForCharacterIndex:(unsigned)index inText:(NSString *)text; public to avoid double-coding
-rw-r--r--Source/NoodleLineNumberView.h2
-rw-r--r--Source/NoodleLineNumberView.m1
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/NoodleLineNumberView.h b/Source/NoodleLineNumberView.h
index ca734a56..7d12d47d 100644
--- a/Source/NoodleLineNumberView.h
+++ b/Source/NoodleLineNumberView.h
@@ -57,4 +57,6 @@
- (unsigned)lineNumberForLocation:(float)location;
+- (unsigned)lineNumberForCharacterIndex:(unsigned)index inText:(NSString *)text;
+
@end
diff --git a/Source/NoodleLineNumberView.m b/Source/NoodleLineNumberView.m
index c5d76187..d1ecbd96 100644
--- a/Source/NoodleLineNumberView.m
+++ b/Source/NoodleLineNumberView.m
@@ -40,7 +40,6 @@
- (NSMutableArray *)lineIndices;
- (void)invalidateLineIndices;
- (void)calculateLines;
-- (unsigned)lineNumberForCharacterIndex:(unsigned)index inText:(NSString *)text;
- (NSDictionary *)textAttributes;
@end