diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-04-21 07:00:12 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-04-21 07:00:12 +0000 |
commit | d80515ceb26102a1fe06ed0e55e86dcb1778aa0e (patch) | |
tree | b7882bdcdb069ba8acceda3966d760d52682f2b1 | |
parent | 238459c935536526bbada41e4f95bf783a33bab1 (diff) | |
download | sequelpro-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.h | 2 | ||||
-rw-r--r-- | Source/NoodleLineNumberView.m | 1 |
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 |