Dino,
I hear what you are saying, but I'm pretty sure it was the display
group data source. To make sure I'm covering all bases, I have put a
snippet of code below along with the output, for you to see for
yourself.
protected void componentDidBecomeVisible()
{
displayStatus();
super.componentDidBecomeVisible();
displayStatus();
}
private void displayStatus()
{
NSLog.out.appendln("+++++++++++++++++++ component status: " +
toString());
EODisplayGroup dg = displayGroup();
EODisplayGroup cdg = controllerDisplayGroup();
EODataSource ds = dg.dataSource();
EODataSource cds = cdg.dataSource();
NSLog.out.appendln("+++++++++++++++++++ display group: " + dg);
NSLog.out.appendln("+++++++++++++++++++ data source: " + ds);
NSLog.out.appendln("+++++++++++++++++++ controller display group: " +
cdg);
NSLog.out.appendln("+++++++++++++++++++ controller data source: " +
cds);
}
Here is the output (this was the same for each call - before and after
the super - apart from claiming it's connected):
+++++++++++++++++++ component status:
CustomClientTimeListController[9dc72f]: type name = <NULL>, not
connected, 2 subcontroller(s), component prepared, visible, component =
EOView[c1c7c4] (minimum size = 513x385, minimum size without integrated
subcontroller components = 0x0, can resize horizontally, can resize
vertically), subcontroller area = <NULL> (minimum size = 0x0), aligns
components, archive name: <NULL>, entity name = <NULL>, responsibility
for connection of 0 associations, editability = IfSupercontroller,
responsibility for editability of 0 associations, editable, not edited,
relationship path = clientTimes
+++++++++++++++++++ display group:
com.webobjects.eointerface.EODisplayGroup@7ff60e
+++++++++++++++++++ data source: null
+++++++++++++++++++ controller display group:
com.webobjects.eointerface.EODisplayGroup@5fe568
+++++++++++++++++++ controller data source: null
As you can see, both data sources are null. This was called in the
componentDidBecomeVisible() method, but have similar results in
connectionWasEstablished().
Any help appreciated. I suspect this is a case when the answer is
simple - but me not being able to see the wood for the trees (at least
I hope so, as that would provide an easy solution).
Ray
On 27/11/2003, at 10:48, Ricardo Strausz wrote:
Hola Ray!
To whom are you asking for the dataSource? to the displayGroup? or the
controllerDisplayGroup?
Dino
On Nov 23, 2003, at 4:24, Ray Ackland wrote:
My current state is using the list controller to access the display
group, then to the data source and add a auxiliary qualifier there.
Good in theory. Problem is don't know the best time to do this. Tried
in the "generateComponent()" and "componentDidBecomeVisible()"
methods,
but at that point there is a display group, but no data source.