Welcome, Guest
Username Password: Remember me

Relationships, fetched properties and whatnots
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Relationships, fetched properties and whatnots

Relationships, fetched properties and whatnots 1 year, 6 months ago #1

Hi!

I wanted to know if you had any suggestions to the way of expressing the below core data model in sensible cocoa? I have a house entity which has multiple room entities which themselves have multiple furniture entities. The thing is it's easily done that way around with sensible cocoa (house->rooms->furniture) but what happens if i want to start creating things via the furniture, or rooms point of view all of this via tab bar views? How would i get the user to select from their previously crested entites (rooms, furniture, etc)?

Hence this is what i'd like to do:

House Tab bar:

Add new house
Add or Select a room
Add or Select a furniture

Rooms Tab bar:

Add new room
Add or Select a house
Add or Select a furniture


Furniture Tab bar:

Add new furniture
Add or Select a room
Add or Select a house

The selecting of previously created entities is the part i can't seem to figure out in cocoa.

Thanks!
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 7

Re: Relationships, fetched properties and whatnots 1 year, 5 months ago #2

Hi Harold,

For an example of selecting previously created entities, please check out the Core Data sample application provided with Sensible TableView. If you go to the "People" tab and create a new person, you will be able to select that person when you go back to Tasks, then create/edit a task and tap on the "Assigned To" cell. I think this is almost identical to what you're trying to do in your application.

Please tell me if you still need more help.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Relationships, fetched properties and whatnots 1 year, 5 months ago #3

Hi Tarek!

Thanks for the info. As usual, i looked too quickly at the samples without realising how much useful info they convey.

Thanks and keep the features coming!
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 7
  • Page:
  • 1
Time to create page: 0.76 seconds