Skip to content

Fixes for Swift to-many accessors, Swift mutableSets#389

Open
apparentsoft wants to merge 4 commits intorentzsch:masterfrom
apparentsoft:master
Open

Fixes for Swift to-many accessors, Swift mutableSets#389
apparentsoft wants to merge 4 commits intorentzsch:masterfrom
apparentsoft:master

Conversation

@apparentsoft
Copy link

Summary of Changes

Machine Swift template had several long standing issues, one of which was absolutely incorrect and some that needed updates or improvements.

Specifically, the mutable relationship accessors were not correct: they just returned a mutable copy of a set instead of returning the actual underlying mutable set provided by the APIs (and where are correctly implemented in the Obj-C code).

Later these same accessors were used in manually written add/removeObjects accessors, which while worked was not done using underlying collections and thus less efficient. Also, these accessors are now generated by the compiler, using @NSManaged attribute. See #332 .

Addresses

#332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant