NSTextfield + NSMenu and first responder
I'm trying to implement my own autocomplemention system (result is pull from an sqlite database) I've set up a NSTextField and the appropriate delegate. Each time the text in the NSTextField change, it call - (void)controlTextDidChange:(NSNotification *)aNotification method It work fine, in this method I build a menu programtically and finally I call/show it with that code: NSRect frame = [address frame]; NSPoint menuOrigin = [[address superview] convertPoint:NSMakePoint(frame.origin.x, frame.origin.y+frame.size.height-25) toView:nil]; NSEvent *event = [NSEvent mouseEventWithType