From 1ee20f146dabafa7a894a4e281e15d837173b390 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 29 Apr 2011 19:26:59 +0000 Subject: Fix warnings and comments. --- Source/SPFieldEditorController.m | 2 +- Source/SPServerVariablesController.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Source') 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 { -- cgit v1.2.3