//Remove the suggestion window from parent window's child window collection before ordering out or the parent window will get ordered out with the suggestion window.
//Close the suggestions window when there is no query
if([[textViewstring]isEqualToString:@""])
[selfcancelSuggestions];
}elseif(commandSelector==@selector(complete:)){
//By overriding this command we prevent AppKit's auto completion and can respond to the user's intention by showing or cancelling our custom suggestions window.