Re: NSManagedObject, NSString property retain vs copy

2015-08-01 Thread Sean McBride
On Fri, 31 Jul 2015 12:15:10 +0200, Jean-Daniel Dupas said: > >> Le 30 juil. 2015 à 18:26, Fritz Anderson a écrit : >> >> On 30 Jul 2015, at 11:03 AM, Trygve Inda wrote: >> >>> It seems Apple is using retain rather than copy for NSString properties in >>> an NSManagedObject subclass. >>> >>>

Re: NSManagedObject, NSString property retain vs copy

2015-07-31 Thread Jean-Daniel Dupas
> Le 30 juil. 2015 à 18:26, Fritz Anderson a écrit : > > On 30 Jul 2015, at 11:03 AM, Trygve Inda wrote: > >> It seems Apple is using retain rather than copy for NSString properties in >> an NSManagedObject subclass. >> >> I was always under the impression that copy should be used for NSStrin

Re: NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Jens Alfke
> On Jul 30, 2015, at 9:03 AM, Trygve Inda wrote: > > It seems Apple is using retain rather than copy for NSString properties in > an NSManagedObject subclass. So, you’re saying that if you store an NSMutableString into a dynamic NSManagedObject property, and then mutate the original string, t

Re: NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Fritz Anderson
On 30 Jul 2015, at 11:03 AM, Trygve Inda wrote: > It seems Apple is using retain rather than copy for NSString properties in > an NSManagedObject subclass. > > I was always under the impression that copy should be used for NSString, so > why the retain?? For an immutable string, -copy is implem

NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Trygve Inda
It seems Apple is using retain rather than copy for NSString properties in an NSManagedObject subclass. I was always under the impression that copy should be used for NSString, so why the retain?? Trygve ___ Cocoa-dev mailing list (Cocoa-dev@lists.a