I have an entity call Company, it has 2 property companyName and companyID.
I want to set ID for my object by finding the highest number ID then adding 1 to it.
But the problem is that i dont know how to set ID for the first object.
Anyone know how to solve that or have a better way to manage data by ID or something else in coredata, please let me know.