Thanks Chris
That master-detail interface which you explained was exactly what I
wanted.
Those videos was cool too.
Regards,
Luca
"Chris Hanson" <cmh@[EMAIL PROTECTED]
> wrote in message
news:2007012301074316807-cmh@[EMAIL PROTECTED]
> On 2007-01-23 00:24:25 -0800, "Luca_a" <nojunk@[EMAIL PROTECTED]
> said:
>
>> 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
>
> Both of these should be explicitly covered -- in Employee and Department
> terms, even -- in one of the tutorials.
>
> Apple has a good video tutorial here:
>
> http://developer.apple.com/cocoa/coredatatutorial/index.html
>
> Scott Stevenson has a good tutorial here:
>
> http://cocoadevcentral.com/articles/000085.php
>
> The main idea I think you're looking for is to use NSArrayController
> instances set to entity mode to manage the table views, pop-up menus,
and
> such for your interface. The tutorials above, and others you can find
by
> searching for "Core Data tutorial" cover this in some depth.
>
> In particular, to create a master-detail interface, bind the content set
> of (say) an employee array controller to a department array controller's
> selected objects' employees. This means that instead of all instances
of
> the Employee entity, the employee array controller will only control
those
> available via the "employees" relation****p of the selected Department
> instance or instances.
>
> -- Chris
>


|