[NSTextView complete:] popup menu delay before hiding
-
When I hit F5 to do complete: in text edit the menu of completions
shows indefinitely, until I select an item or type a new letter. Same
thing happens when I do F5 in Safari's search field. But if I do F5 in
Xcodes's toolbar search field the popup of choices only shows for
about a second, and then automatically hides.
This leads to my problem. My application has the autohide behavior of
the completions list, but I want it to have the stay visible
indefinitely behavior. I assume that Text Edit has the default
behavior, but I can't seem to find where in my code I've set things up
so that the completions list hides after a few seconds.
Does anyone know how to make sure that NSTextViews popup menu of
completions stays visible until the user presses a new key?
Thanks,
Jesse -
> When I hit F5 to do complete: in text edit the menu of completions
> shows indefinitely, until I select an item or type a new letter. Same
> thing happens when I do F5 in Safari's search field. But if I do F5 in
> Xcodes's toolbar search field the popup of choices only shows for
> about a second, and then automatically hides.
Well rather proud of figuring this one out. Turns out that I wasn't
being dumb and messing things up myself. Instead the NSTextView
complete: popup menu behavior is different depending on if the app
supports garbage collection or not. I'm assuming that there is a bug
when garbage collection is on... the popup only shows for a few
seconds until it gets collected. I'll report this to app, in the
meantime does anyone know how to work around this problem?
Jesse -
On Dec 5, 2008, at 9:28 AM, Jesse Grosjean wrote:>> When I hit F5 to do complete: in text edit the menu of completions
>> shows indefinitely, until I select an item or type a new letter. Same
>> thing happens when I do F5 in Safari's search field. But if I do F5
>> in
>> Xcodes's toolbar search field the popup of choices only shows for
>> about a second, and then automatically hides.
>
> Well rather proud of figuring this one out. Turns out that I wasn't
> being dumb and messing things up myself. Instead the NSTextView
> complete: popup menu behavior is different depending on if the app
> supports garbage collection or not. I'm assuming that there is a bug
> when garbage collection is on... the popup only shows for a few
> seconds until it gets collected. I'll report this to app, in the
> meantime does anyone know how to work around this problem?
I unfortunately have no work around but I definitely want to hear
about it when or if you find one.
Ashley


