Positioning of autocomplete popups
Positioning of autocomplete popups
- Subject: Positioning of autocomplete popups
- From: Dave Robertson <email@hidden>
- Date: Mon, 18 May 2009 21:09:01 +1200
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 field is
very close to the bottom of the screen.
Popups for NSPopupButtons or contextual menus adjust their position in
these circumstances, so that they appear above their base position to
maximize their visibility.
The autocomplete list quite happily pops up completely off screen -
but I'd like to provide a better user experience than that.
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?
Thanks,
Dave Robertson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden