for an app, i have to search for a function in JavaScript syntax in a NSString.
In java, i've done it this way:
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
private Scriptable script;
public boolean bla(String name) {
Object obj = script.get(name, script);
if (!(obj instanceof Function)) {
return false;
}
return true;
}
Is there an easy way to convert this to objective-c? It's in Cocoa touch, so i can't use webkit.
thanks
m0e