Re: Cocoa Bindings master-detail interface with sets of data in the detail part
Re: Cocoa Bindings master-detail interface with sets of data in the detail part
- Subject: Re: Cocoa Bindings master-detail interface with sets of data in the detail part
- From: mmalc crawford <email@hidden>
- Date: Thu, 16 Aug 2007 11:14:23 -0700
On Aug 16, 2007, at 10:28 AM, Paul Bruneau wrote:
On Aug 16, 2007, at 11:53 AM, mmalc crawford wrote:
What did you try?
OK, really pinning me down :)
Sorry, but it's useful to try to get a handle on this so
misconceptions can be better addressed in future.
It is difficult to explain doing things in IB so I hope a couple
screenshots are ok:
Here is the closest I have gotten:
<Picture 1.png>The content is correct, but it is displaying on one
line rather than on two lines. I set the "Operation 1" and
"Operation 2" programatically upon creation of the Workcenter just
to give me some data to see.
[...]
I am nervous that I don't have a controller for operationTypes but I
don't think I could instantiate it in IB due to needing one for each
of my WorkCenter objects (rather than just a single instance). Do I
have to create a controller programatically for each operationTypes
array?
No -- you just need to create an array controller for the
operationTypes for the currently-selected WorkCenter...
But you got the employees from the Department object. The
employees table is a detail of the selected department.
I hate to differ, since I know that you are right and I am wrong,
but I can't see it. The department is not in a list from which one
can choose, it is set with each document, a single object.
... indeed, but the again the principle is the same. There's a single
*selection* in the object controller. In a similar way, you can in IB
instantiate a new array controller to manage a collection of
OperationType objects. The 'contentArray' comes from
[WorkCentersController].selection.operationTypes.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden