I've written a small application for OS X in AppleScriptObj-C containing a UItextfield. Everything works fine except that when user has entered text and erased it, the textfield becomes nil. How can I check if it's nil with AppleScriptObj-C?
- Checking for "length of textfield is equal to 0" throws "Can’t get length of missing value."
- Checking for "textfield doesn't contains string" works for nil textfield, but then textfield with text in it throws "Can’t make «class ocid» id «data optr0000000090CB250000600000» into type list, record or text."
Any ideas how to solve this?
Thanks, Patrik