I added an attribute to my Core Data Stack. I've done this several times in the past, but this was my first time with Xcode 7.
In the past, when I generated new managed object subclasses to reflect the changes in the Data Model, my approach was to replace the old MO subclasses with the new ones. Both old and new used the same name, so it was an easy matter to look at the generation date as a double check.
But now, Xcode generates a different type of file. For example, where my old MO file were named "WMMGAccount.h
" and "WMMGAccount.m
", the new files are named "WMMGAccount+CoreDataProperties.h
" and "WMMGAccount+CoreDataProperties.m
".
I see that the new file does an #import "WMMGAccount.h"
My questions are:
1) How should I integrate the new subclass files into the project?
2) How do I reference the new attribute?