I've also written my own completion mechanism. It's not too hard, just add a child window and list your results however makes sense for your application. A lot less ugly and a lot more appropriate than Apple's default, in my opinion.

On Jan 20, 2009, at 10:28 AM, Ross Carter wrote:


On Jan 20, 2009, at 6:28 AM, Markus Guhe wrote:

Hi all,

In my application I get the behaviour that autocompletion windows disappear after a short delay (1 sec or so). This happens with all completions: custom completions in an NSTokenField and an NSTextField as well as the default mechanism in an unmodified NSTextView. Am I missing something general?

I ran into this too, and I can't offer a simple fix, but in my case it prompted me to override complete: with my own implementation. The default completion mechanism, IMHO, is ugly; there are way too many hits (including stem, if it is a word), it inserts unfixed quotes, transparency make the list hard to read, and it draws an empty vertical scroll bar for short lists. It was fairly easy to use completionsForPartialWordRange: indexOfSelectedItem: to get the list, filter it, and display the results in a more attractive control.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/joshaber%40gmail.com

This email sent to josha...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to