• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Cocoa Bundle] NSString To JavaScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [Cocoa Bundle] NSString To JavaScript
      • From: Scott Stevenson <email@hidden>
    • Re: [Cocoa Bundle] NSString To JavaScript
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Compile error
  • Next by Date: Re: Compile error
  • Previous by thread: Re: Compile error
  • Next by thread: Re: [Cocoa Bundle] NSString To JavaScript
  • Index(es):
    • Date
    • Thread