message: Added multi words filter search to autocomplete (mac),
diff: @@ -148,6 +148,34 @@ extern void *ctx;
  for (int i = 0; i < self.orderedKeys.count; i++)
  {
  NSString *key = self.orderedKeys[i];
  +
  + NSArray *stringArray = [filter componentsSeparatedByString:@" "];
  + if (stringArray.count > 1)
  + {
  + // Filter is more than 1 word. Let's search for all the words entered.
  + int foundCount = 0;
  + for (int j = 0; j < stringArray.count; j++)
  + {
  + NSString *splitFilter = stringArray[j];
  +
  + if ([key rangeOfString:splitFilter options:NSCaseInsensitiveSearch].location != NSNotFound)
  + {
  + foundCount++;
  + if ([key length] > self.textLength)
  + {
  + self.textLength = [key length];
  + }
  +
  + if (foundCount == stringArray.count)
  + {
  + [filtered addObject:key];
  + }
  + }
  + }
  + }
  + else
  + {
  + // Single word filter
  if ([key rangeOfString:filter options:NSCaseInsensitiveSearch].location != NSNotFound)
  {
  if ([key length] > self.textLength)
  @@ -157,6 +185,7 @@ extern void *ctx;
  [filtered addObject:key];
  }
  }
  + }
  self.filteredOrderedKeys = filtered;
  }
  [self reload];
  