|
From: Adam M. <ama...@ma...> - 2004-07-23 18:08:35
|
On Jul 23, 2004, at 12:26, J=E9r=F4me Laurens wrote: > > I suggest you to poseAsClass: instead of just declaring a category > [...] > At launch time, the runtime system automatically sends the +load=20 > message, then your patch to the NSTextView is automatically installed=20= > and your complete: is available. I find this trick fabulous... Cool! I've never tried that, but it loads it as you say; I guess=20 poseAsClass is more like implementing a subclass? It's still not working, though, since the message=20 completionsForPartialWordRange:indexOfSelectedItem: isn't getting=20 received by my addition. The system declares these in NSTextView.h as=20= @interface NSTextView (NSCompletion) ... @end I'm not sure what to try next. Something, somewhere is getting the=20 complete: selector, since it's working for non-Bibdesk completions in=20 iTM. > > Other problems can come from the F6 key binding, does it work as=20 > expected? It appears to work. It completes the same as opt-esc in TextEdit, for=20= instance, and appears to be functional in TeXShop for the Bibdesk=20 autocomplete. --=20 Adam |