views:

36

answers:

1

Is it possible for a NSTextField to respond to javascript commands??

Thanks! Elijah

+1  A: 

No. It only accepts objective-c messages.

If you have a WebView that generates some javascript events though, they can trigger something outside of your web view, but this is already objective-c or some other native language. This can then call obj-c messages on the NSTextField.

Eiko