[Cocoa Bundle] NSString To JavaScript
[Cocoa Bundle] NSString To JavaScript
- Subject: [Cocoa Bundle] NSString To JavaScript
- From: محمد الركيان <email@hidden>
- Date: Sun, 8 Apr 2007 19:08:12 +0300
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 ?!!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden