• 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: NSManagedObject, NSString property retain vs copy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSManagedObject, NSString property retain vs copy


  • Subject: Re: NSManagedObject, NSString property retain vs copy
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 30 Jul 2015 10:48:42 -0700

> On Jul 30, 2015, at 9:03 AM, Trygve Inda <email@hidden> 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, the property’s value changes too? Do you have a snippet that exhibits this?

—Jens
_______________________________________________

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: 
 >NSManagedObject, NSString property retain vs copy (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Regarding these Olivia messages. Can we do something about the list security?
  • Next by Date: Re: Timeouts in NSURLSession
  • Previous by thread: Re: NSManagedObject, NSString property retain vs copy
  • Next by thread: debugging UIWebView and <audio> errors
  • Index(es):
    • Date
    • Thread