Skip to content

Commit

Permalink
correct method names in log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sgschantz committed Apr 19, 2024
1 parent 984e6dc commit 5b9e5d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mac/Keyman4MacIM/Keyman4MacIM/TextApiCompliance.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ -(void) checkCompliance:(id) client {
else {
// if API exists, call it and see if it works as expected
self.initialSelection = [client selectedRange];
[self.appDelegate logDebugMessage:@"TextApiCompliance testCompliance, location = %lu, length = %lu", self.initialSelection.location, self.initialSelection.length];
[self.appDelegate logDebugMessage:@"TextApiCompliance checkCompliance, location = %lu, length = %lu", self.initialSelection.location, self.initialSelection.length];
[self checkComplianceUsingInitialSelection];
}
[self.appDelegate logDebugMessage:@"TextApiCompliance testCompliance workingSelectionApi for app %@: set to %@", self.clientApplicationId, self.complianceUncertain?@"YES":@"NO"];
[self.appDelegate logDebugMessage:@"TextApiCompliance checkCompliance workingSelectionApi for app %@: set to %@", self.clientApplicationId, self.complianceUncertain?@"YES":@"NO"];
}

-(void) checkComplianceUsingInitialSelection {
Expand All @@ -100,7 +100,7 @@ -(void) checkComplianceUsingInitialSelection {
*/
self.hasCompliantSelectionApi = NO;
self.complianceUncertain = YES;
[self.appDelegate logDebugMessage:@"TextApiCompliance testCompliance not compliant but uncertain, range is NSNotFound"];
[self.appDelegate logDebugMessage:@"TextApiCompliance checkComplianceUsingInitialSelection not compliant but uncertain, range is NSNotFound"];
} else if (self.initialSelection.location >= 0) {
/**
* location greater than or equal to zero may just mean that the client
Expand All @@ -109,7 +109,7 @@ -(void) checkComplianceUsingInitialSelection {
*/
self.hasCompliantSelectionApi = YES;
self.complianceUncertain = YES;
[self.appDelegate logDebugMessage:@"TextApiCompliance testCompliance compliant but uncertain, location >= 0"];
[self.appDelegate logDebugMessage:@"TextApiCompliance checkComplianceUsingInitialSelection compliant but uncertain, location >= 0"];
}
}

Expand All @@ -122,7 +122,7 @@ -(void) checkComplianceAfterInsert:(id) client delete:(NSString *)textToDelete i

// return if compliance is already certain
if(!self.complianceUncertain) {
[self.appDelegate logDebugMessage:@"TextApiCompliance testSelectionApiAfterInsert, compliance is already known"];
[self.appDelegate logDebugMessage:@"TextApiCompliance checkComplianceAfterInsert, compliance is already known"];
return;
}

Expand All @@ -133,7 +133,7 @@ -(void) checkComplianceAfterInsert:(id) client delete:(NSString *)textToDelete i
[self validateLocationChange:changeExpected hasLocationChanged:locationChanged];
}

[self.appDelegate logDebugMessage:@"TextApiCompliance testComplianceAfterInsert, self.hasWorkingSelectionApi = %@ for app %@", self.hasCompliantSelectionApi?@"YES":@"NO", self.clientApplicationId];
[self.appDelegate logDebugMessage:@"TextApiCompliance checkComplianceAfterInsert, self.hasWorkingSelectionApi = %@ for app %@", self.hasCompliantSelectionApi?@"YES":@"NO", self.clientApplicationId];
}

- (BOOL)validateNewLocation:(NSUInteger)location delete:(NSString *)textToDelete {
Expand Down Expand Up @@ -198,7 +198,7 @@ - (BOOL)applyNoncompliantAppLists:(NSString *)clientAppId {
isAppNonCompliant = [self containedInUserManagedNoncompliantAppList:clientAppId];
}

[self.appDelegate logDebugMessage:@"containedInNoncompliantAppLists: for app %@: %@", clientAppId, isAppNonCompliant?@"yes":@"no"];
[self.appDelegate logDebugMessage:@"applyNoncompliantAppLists: for app %@: %@", clientAppId, isAppNonCompliant?@"YES":@"NO"];

if (isAppNonCompliant) {
self.complianceUncertain = NO;
Expand Down

0 comments on commit 5b9e5d8

Please sign in to comment.