aboutsummaryrefslogtreecommitdiffstats
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
parent75e4e58eecf4ae1b8f25751b0bc7d457edcf57e8 (diff)
downloadsequelpro-1ee20f146dabafa7a894a4e281e15d837173b390.tar.gz
sequelpro-1ee20f146dabafa7a894a4e281e15d837173b390.tar.bz2
sequelpro-1ee20f146dabafa7a894a4e281e15d837173b390.zip
Fix warnings and comments.
-rw-r--r--Source/SPFieldEditorController.m2
-rw-r--r--Source/SPServerVariablesController.m4
2 files changed, 3 insertions, 3 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;
diff --git a/Source/SPServerVariablesController.m b/Source/SPServerVariablesController.m
index dedda57b..f2eb60e0 100644
--- a/Source/SPServerVariablesController.m
+++ b/Source/SPServerVariablesController.m
@@ -138,7 +138,7 @@
#pragma mark Other methods
/**
- * Displays the process list sheet attached to the supplied window.
+ * Displays the server variables sheet attached to the supplied window.
*/
- (void)displayServerVariablesSheetAttachedToWindow:(NSWindow *)window
{
@@ -253,7 +253,7 @@
#pragma mark Text field delegate methods
/**
- * Apply the filter string to the current process list.
+ * Apply the filter string to the current variables list.
*/
- (void)controlTextDidChange:(NSNotification *)notification
{