• 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
Re: [Cocoa Bundle] NSString To JavaScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[Cocoa Bundle] NSString To JavaScript (From: محمد الركيان <email@hidden>)

  • Prev by Date: Re: [Cocoa Bundle] NSString To JavaScript
  • Next by Date: Re: Multiple developers and nib files
  • Previous by thread: Re: [Cocoa Bundle] NSString To JavaScript
  • Next by thread: dumb bindings/user defaults question
  • Index(es):
    • Date
    • Thread