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 ?!!
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 mails | Author | Date |
|---|---|---|
| ???? ??????? | Apr 8, 18:08 | |
| Andrew Merenbach | Apr 8, 19:47 | |
| Scott Stevenson | Apr 8, 19:50 |






Cocoa mail archive

