Revision: 22221 http://sourceforge.net/p/bibdesk/svn/22221 Author: hofman Date: 2018-05-06 16:43:47 +0000 (Sun, 06 May 2018) Log Message: ----------- implement completion delegate method
Modified Paths: -------------- trunk/bibdesk/BDSKFieldEditor.m Modified: trunk/bibdesk/BDSKFieldEditor.m =================================================================== --- trunk/bibdesk/BDSKFieldEditor.m 2018-05-06 15:45:21 UTC (rev 22220) +++ trunk/bibdesk/BDSKFieldEditor.m 2018-05-06 16:43:47 UTC (rev 22221) @@ -380,6 +380,12 @@ return charRange; } +- (NSString *)textView:(NSTextView *)textView completion:(NSString *)word { + if (textView == [self currentEditor] && [[self delegate] respondsToSelector:@selector(control:textView:completion:)]) + return [(id<BDSKControlFieldEditorDelegate>)[self delegate] control:self textView:textView completion:word]; + return word; +} + - (BOOL)textViewShouldAutoComplete:(NSTextView *)textView { if (textView == [self currentEditor] && [[self delegate] respondsToSelector:@selector(control:textViewShouldAutoComplete:)]) return [(id<BDSKControlFieldEditorDelegate>)[self delegate] control:self textViewShouldAutoComplete:textView]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit