Skip navigation.
 
ml[Cocoa Bundle] NSString To JavaScript
FROM : ???? ???????
DATE : Sun Apr 08 18:08:12 2007

Hi...


See this JavaScript Code:
PT.setCityName("US");
document.getElementById("helloText").innerHTML = PT.getCityName();


When I try to set value in PT Class from JavaScript, then I try to 
get it back (as what you see above), some time the widget CRASH and 
some time getCityName function return "helloText" !!!!


This happen Only with string, I have other SETs and GETs functions 
that handle int and doule, and they are working very good .



this is my code in "Cocoa Bundle":

...

NSString* CityName;

- (void) setCityName:(NSString*) vCityName
{
   CityName = vCityName;
}

- (NSString*) getCityName
{
   return CityName;
}

...


maybe the problem in pointers ?!!

Related mailsAuthorDate
ml[Cocoa Bundle] NSString To JavaScript ???? ??????? Apr 8, 18:08
mlRe: [Cocoa Bundle] NSString To JavaScript Andrew Merenbach Apr 8, 19:47
mlRe: [Cocoa Bundle] NSString To JavaScript Scott Stevenson Apr 8, 19:50