• 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: Are Core Data to-many relationships nullable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are Core Data to-many relationships nullable?


  • Subject: Re: Are Core Data to-many relationships nullable?
  • From: David Catmull <email@hidden>
  • Date: Thu, 5 Oct 2017 14:18:18 -0600

Apparently the answer is that they should be declared nullable. Even though
I've seen claims that the property will always return a set, apparently
it's also allowable to assign it to nil to clear it out.

On Thu, Oct 5, 2017 at 1:00 PM, David Catmull <email@hidden>
wrote:

> I'm adding nullability notations to my Core Data classes for Swift
> interoperability, and I need to know whether the properties for to-many
> relationships should be considered nullable, or if they will always read as
> empty sets. Is there an authoritative answer for this?
>
_______________________________________________

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: 
 >Are Core Data to-many relationships nullable? (From: David Catmull <email@hidden>)

  • Prev by Date: Are Core Data to-many relationships nullable?
  • Next by Date: Odd Behavior of UIText View in app compiled with a Base SDK of iOS 11
  • Previous by thread: Are Core Data to-many relationships nullable?
  • Next by thread: Odd Behavior of UIText View in app compiled with a Base SDK of iOS 11
  • Index(es):
    • Date
    • Thread