translating Ecmascript (Java,javascript,Actionscript) knowledge to Objective C

Posted by eco_bach on Stack Overflow See other posts from Stack Overflow or by eco_bach
Published on 2010-04-24T13:39:49Z Indexed on 2010/04/24 13:43 UTC
Read the original article Hit count: 551

Hi Newcomer to Objective C and trying to translate concepts and sytax I know from ecmascript based languages to Objective C.

Is it proper to think of the .h header file in ObjectiveC as an Interface in Actionscript?

Lets take the following code example in Objective C which calls a method containing 2 arguments

[myTextObject setString: @"Hello World" color: kWhiteColor];

In Actionscript(or javascript) would this be the same as calling 2 accessor methods on 'myTextObject'? ie

myTextObject.setString("Hello World")
myTextObject.color(kWhiteColor);

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ecmascript