aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
{