aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-04-29 19:26:59 +0000
committerstuconnolly <stuart02@gmail.com>2011-04-29 19:26:59 +0000
commit1ee20f146dabafa7a894a4e281e15d837173b390 (patch)
tree82728761ac88f0820d06508d97936e45175e2fe4 /Source/SPFieldEditorController.m
parent75e4e58eecf4ae1b8f25751b0bc7d457edcf57e8 (diff)
downloadsequelpro-1ee20f146dabafa7a894a4e281e15d837173b390.tar.gz
sequelpro-1ee20f146dabafa7a894a4e281e15d837173b390.tar.bz2
sequelpro-1ee20f146dabafa7a894a4e281e15d837173b390.zip
Fix warnings and comments.
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 52a90fcd..bf48ec80 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -571,7 +571,7 @@
// and suppress closing the sheet
if(sender == editSheetOkButton) {
if (maxTextLength > 0 && [[editTextView textStorage] length] > maxTextLength && ![[[editTextView textStorage] string] isEqualToString:[prefs objectForKey:SPNullValue]]) {
- [editTextView setSelectedRange:NSMakeRange(maxTextLength, [[editTextView textStorage] length] - maxTextLength)];
+ [editTextView setSelectedRange:NSMakeRange((NSUInteger)maxTextLength, [[editTextView textStorage] length] - (NSUInteger)maxTextLength)];
[editTextView scrollRangeToVisible:NSMakeRange([editTextView selectedRange].location,0)];
[SPTooltip showWithObject:[NSString stringWithFormat:NSLocalizedString(@"Text is too long. Maximum text length is set to %llu.", @"Text is too long. Maximum text length is set to %llu."), maxTextLength]];
return;