Re: Are Core Data to-many relationships nullable?
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