• 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
Properties and memory management with overrides.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Properties and memory management with overrides.


  • Subject: Properties and memory management with overrides.
  • From: Sandro Noel <email@hidden>
  • Date: Sun, 18 Jan 2009 16:19:39 -0500

Greetings.

This is probably a stupid question.

if i have a property declared as
@property (readwrite, copy) NSString *name;

if I override the -(void) setName(NSString*)value{}

The object that I get as value is it already a copy?

Will the object still copy if I just
instanceVariable = value;

or do I have to
instanceVariable = [value copy];

Thank you!

Sandro Noel.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Properties and memory management with overrides.
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Localized Title Of Applications Folder As Alias?
  • Next by Date: Re: Properties and memory management with overrides.
  • Previous by thread: Re: Localized Title Of Applications Folder As Alias?
  • Next by thread: Re: Properties and memory management with overrides.
  • Index(es):
    • Date
    • Thread