Noob warning!
I've been programming in a relational database (IBM iSeries/AS400 and RPG) since...wait for it...1979.
Trying to wrap my head around Core Data, specifically regarding relationships.
What I'm trying to do is come up with a tableview, that shows a list of folders and tasks, for example:
Home Stuff (folder)
-Pond (folder)
----finish waterfall (task)
----buy a UV light (task)
-Office (folder)
----clean up desk (task)
----move desk to office (task)
Work stuff (folder)
-Customer project (folder)
----Enhancement 1 (folder)
--------fix logging issue (task)
--------add yada yada (task)
----Office (folder)
--------uh nuther task (task)
etc
With RPG, I would typically define 2 files, one called Folders, and another called Tasks, and define a relationship between them. On the iSeries, I would have a field in each file that would be a unique key...for example, if I wanted 2 folders, both called "Office" at different levels, so there would be no confusion between them.
Should I have a "hidden" field that would be a unique key, that the relationships are based on, for example a timestamp field that would be have an automatically generated value when the Folder or Task was created?
Or am I missing something here?
Thanks in advance for helping an old programmer try to improve himself!
I've been programming in a relational database (IBM iSeries/AS400 and RPG) since...wait for it...1979.
Trying to wrap my head around Core Data, specifically regarding relationships.
What I'm trying to do is come up with a tableview, that shows a list of folders and tasks, for example:
Home Stuff (folder)
-Pond (folder)
----finish waterfall (task)
----buy a UV light (task)
-Office (folder)
----clean up desk (task)
----move desk to office (task)
Work stuff (folder)
-Customer project (folder)
----Enhancement 1 (folder)
--------fix logging issue (task)
--------add yada yada (task)
----Office (folder)
--------uh nuther task (task)
etc
With RPG, I would typically define 2 files, one called Folders, and another called Tasks, and define a relationship between them. On the iSeries, I would have a field in each file that would be a unique key...for example, if I wanted 2 folders, both called "Office" at different levels, so there would be no confusion between them.
Should I have a "hidden" field that would be a unique key, that the relationships are based on, for example a timestamp field that would be have an automatically generated value when the Folder or Task was created?
Or am I missing something here?
Thanks in advance for helping an old programmer try to improve himself!