Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using @NSManaged for KVC to-many accessor methods #332

Open
Jean-Daniel opened this issue Apr 21, 2016 · 0 comments
Open

Using @NSManaged for KVC to-many accessor methods #332

Jean-Daniel opened this issue Apr 21, 2016 · 0 comments

Comments

@Jean-Daniel
Copy link

Jean-Daniel commented Apr 21, 2016

Feature Request

Since Xcode 7.3, it is now possible to use @NSManaged with methods as well as properties.
So, instead of generating custom methods for KVC to-many accessors, it is now possible to let the compiler do the hard work:

@NSManaged var employees: NSSet

@NSManaged func addEmployeesObject(employee: Employee)
@NSManaged func removeEmployeesObject(employee: Employee)
@NSManaged func addEmployees(employees: NSSet)
@NSManaged func removeEmployees(employees: NSSet)

Using that new feature, it should be possible to simplify the swift2 generated code.

@Jean-Daniel Jean-Daniel changed the title Using @NSManaged for KVO accessor methods Using @NSManaged for KVC to-many accessor methods Apr 21, 2016
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

No branches or pull requests

1 participant