Re: Positioning of autocomplete popups

2009-06-14 Thread Uli Kusterer
Am 11.06.2009 um 23:35 schrieb Dave Robertson: Is there a recommended way to display a menu while still keeping key events flowing to the search field? Do you need a menu? Have you tried just creating your own cool- looking borderless window and stuffing an NSTableView with the completion

Re: Positioning of autocomplete popups

2009-06-14 Thread Ross Carter
On Jun 11, 2009, at 11:35 PM, Dave Robertson wrote: Is there a recommended way to display a menu while still keeping key events flowing to the search field? Not that I know of. In my case, I filter the list to remove things like apostrophe-s and display the list only if it contains less th

Re: Positioning of autocomplete popups

2009-06-11 Thread Dave Robertson
Ross, Thanks for your comments. I agree the autocomplete popup looks curiously unpolished compared to other system popup menus. I've implemented the approach you suggest, and can populate an NSPopuButton menu with my completion candidates. This works well up until the user types another ch

Re: Positioning of autocomplete popups

2009-05-18 Thread Ross Carter
On May 18, 2009, at 5:09 AM, Dave Robertson wrote: Is there a way to control the position or appearance of an autocomplete popup? I've noticed that autocompletion in Xcode does the right thing - is anyone able to suggest how this could be achieved? IMHO, the default text completion list

Positioning of autocomplete popups

2009-05-18 Thread Dave Robertson
Hi, I've just implemented an NSSearchField control with autocomplete using the delegate method control:textView:completions:forPartialWordRange:indexOfSelectedItem: It appears that the popup list of autocomplete candidate strings always pops up below the NSSearchField, even if the search