NSSearchField question.

I am using the NSSearchField in MacOSLib.

Can anyone shed some light as to why the code below produces a “THIS ITEM DOES NOT EXIST” error?

if NSSearchField1.text <>"" Then

If I use abnormal text field it works fine, but if I use a NSSearchField - I get the error
Is it not possible to check a NSSearchField for an empty string?


It looks like NSSearchField uses stringValue instead of text.

Give NSSearchField1.stringValue a try.

Tim - that was it - THANK YOU!