0

I just started developing with Cappuccino Framework and I wonder if it is possible to use native javascript code in Objective-J? I just tried to implement a simply alert(); in Objective-J code but it doesn't work at the browser...

var label = [[CPTextField alloc] initWithFrame:CGRectMakeZero()];
[label setStringValue:@"Hello World!"];
[label setFont:[CPFont boldSystemFontOfSize:24.0]];
alert("simple test");

1 Answer 1

1

Objective-J is a superset of JavaScript. So native JavaScript is part of the Objective-J language.

Are you sure your code is being executed?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.