Re: [Cocoa Bundle] NSString To JavaScript
Re: [Cocoa Bundle] NSString To JavaScript
- Subject: Re: [Cocoa Bundle] NSString To JavaScript
- From: Scott Stevenson <email@hidden>
- Date: Sun, 8 Apr 2007 10:50:44 -0700
On Apr 8, 2007, at 9:08 AM, محمد الركيان wrote:
NSString* CityName;
- (void) setCityName:(NSString*) vCityName
{
CityName = vCityName;
}
This won't work the way you think. Take a look here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
Articles/mmAccessorMethods.html>
The reason it works for int and double is those are simple C
primitive values. Objects work a bit differently, though Leopard will
make it easier.
- Scott
_______________________________________________
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