我正在试图找出如何在搜索字段下方显示搜索结果.我想原因是我的程序从未收到消息
-(NSArray *)control:(NSControl *)control textView:(NSTextView *)textView completions:(NSArray *)words forPartialWordRange:(NSRange)charRange indexOfSelectedItem:(int*)index;
Run Code Online (Sandbox Code Playgroud)
所以我永远无法回复任何结果.
但是,我确实收到了
- (void)controlTextDidChange:(NSNotification *)obj;
- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)commandSelector;
Run Code Online (Sandbox Code Playgroud)
什么原因可能是什么机会?我确实设置了代表.