• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 26 Jan 2009 17:45:10 -0500
  • Organization: Rogue Research Inc.

On 1/18/09 4:29 PM, Ben Trumbull said:

>> 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.
>
>Core Data @dynamic properties are always nonatomic, irrespective of
>the property declaration.
>
>Core Data explicitly, intentionally, and states in the documentation,
>that you can have any property atomicity you want so long as it's
>nonatomic.

Interesting.  I never thought about this either, and was happy to see
this come up.

Ben, does this mean that the examples given here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdAccessorMethods.html#//apple_ref/doc/uid/TP40002154-SW9>

should be:

@property(retain, nonatomic) NSString* firstName, lastName;

instead of:

@property(retain) NSString* firstName, lastName;

(I understand that it makes no difference at runtime.)

Likewise, shouldn't Xcode's 'Design > Data Model > Copy Obj-C 2.0 Method
Declarations to Clipboard' feature specify nonatomic?

Or am I confused again? :)

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Ben Trumbull <email@hidden>
    • Re: Properties and memory management with overrides.
      • From: Quincey Morris <email@hidden>
References: 
 >Re: Properties and memory management with overrides. (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Safari-like tabs in my own app?
  • Next by Date: RE: Safari-like tabs in my own app?
  • Previous by thread: Re: Properties and memory management with overrides.
  • Next by thread: Re: Properties and memory management with overrides.
  • Index(es):
    • Date
    • Thread