I am trying to clear field NSSearchField by clicking on the clear button on the right side.  I am not able to click on it. 
Here is a screen recording of what's happening at my end:

I used the following code found by RND:
[[[self.SrcFiled cell] cancelButtonCell] setAction:@selector(clearSearchField:)];
[[[self.SrcFiled cell] cancelButtonCell] setTarget:self];
But it is not working; I have no idea how to fix this issue. Please suggest how to fix this.

