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

Re: Properties and memory management with overrides.


  • Subject: Re: Properties and memory management with overrides.
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 18 Jan 2009 14:57:17 -0800

On Jan 18, 2009, at 13:52, Mike Abdullah wrote:

You're overriding the method, so it is up to you to implement the copying behaviour.

On 18 Jan 2009, at 21:19, Sandro Noel wrote:

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?

And (I assume, for the same reason) that since the property is by default atomic, the override is also responsible for implementing any actual atomic behavior.


I mention this because (I'm embarrassed to admit) I never really thought about this till yesterday. I *think* other design decisions have made the atomic-ness irrelevant to any of the code I've written, but now I need to go back and check, especially where Core Data is involved.


_______________________________________________

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


References: 
 >Properties and memory management with overrides. (From: Sandro Noel <email@hidden>)
 >Re: Properties and memory management with overrides. (From: Mike Abdullah <email@hidden>)

  • Prev by Date: [NOOB] Finding Information (was: real noob question)
  • Next by Date: Re: ObjC in time-critical parts of the code
  • Previous by thread: Re: Properties and memory management with overrides.
  • Next by thread: Re: Properties and memory management with overrides.
  • Index(es):
    • Date
    • Thread