Invisible Text Field
July 25th, 2006 No Comments »
Well, I’ve turned off spell checking, so no more crashes.
However, still no search bar!
The control is created and is getting called on occasion (e.g. to get its size when the window changes size).
It’s just not visible.
One thing I had to do to the control before adding it to the toolbar was to remove it from its superview.
When the control was created its “Window” was set to be the Chandler window.
However, the toolbar API doc specifically says that the control should be created with a NULL Window parent.
I thought the best I could do (since I have no control over how the control is created) was to call
HIViewRemoveFromSuperview() on it.
From the debugger, I could tell it certainly set the control’s window to NULL, so I think it’s the right thing to do.
However, whenever I do a dump of the control,
I now see that its “Visible” value is always “no”.
And indeed, it is not shown at all.
I’ve added code to explicitly make the control visible, but it makes no difference.
So tomorrow I’m going to look into trying things like putting another (non-text) control in the toolbar and see if it’s another text-field-specific thing.
I’ll just put a button in or something.
*sigh

