Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Core Data UI
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 924 of 1025
Post > Topic >>

Core Data UI

by "Luca_a" <nojunk@[EMAIL PROTECTED] > Jan 23, 2007 at 05:24 PM

Hi everyone,

I am an experienced Windows C++ programmer, but quite new to Mac os 
programming.
I have just started to evaluate Core Data framework by using it to put 
together a small database.
Let's explain my problem with usual Employee, Department example.
I have created Employee and  Department entities, each with their own set
of 
attributes.
There is To-Many relationship called "employees" defined for Department
with 
Employee as destination.
There is also To-One relationship called "department" defined for Student 
with Department as destination.

In my user interface I have two NSTableView  : Employee NSTableView that 
allows user to enter list of employees attributes by calling add, remove 
methods of  EmployeeArrayController. Department NSTableView  that allows 
user to enter list of departments attributes by calling add, remove
methods 
of  DepartmentArrayController.

What I don't understand is

1. How to actually add data to tables using the UI, eg:  how to select
John 
from the list of employees and tell to the framework that John is in the 
Sales department and so on, so that I can assign all employees to their 
departments.

2. After I did that task the next question is what is the best way to 
display data for example how to select a department from list of
departments 
and as a result all employees in that department are displayed


Thanks for any help.

Luca




 4 Posts in Topic:
Core Data UI
"Luca_a" <no  2007-01-23 17:24:25 
Re: Core Data UI
Chris Hanson <cmh@[EMA  2007-01-23 01:07:43 
Re: Core Data UI
"Luca_a" <no  2007-01-25 16:43:14 
Re: Core Data UI
David Phillip Oster <o  2007-01-24 05:38:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 4 16:46:17 CDT 2008.