• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Filtering an array of EO objects in D2J (getting the data source)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering an array of EO objects in D2J (getting the data source)


  • Subject: Re: Filtering an array of EO objects in D2J (getting the data source)
  • From: Jean Pierre Malrieu <email@hidden>
  • Date: Sat, 29 Nov 2003 11:16:52 +0100

Ray,

If you can't solve your dataSource problem (but you probably will), you can build your editingContext and dataSource yourself.
Write a (or several) provider method in your controller class, and write a rule setting the provider method.


JP.

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.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Filtering an array of EO objects in D2J (getting the data source)
      • From: Ray Ackland <email@hidden>
  • Prev by Date: Re: next release of WO?
  • Next by Date: XCode and EOModels...
  • Previous by thread: Re: Cocoa EOF enquiry
  • Next by thread: Re: Filtering an array of EO objects in D2J (getting the data source)
  • Index(es):
    • Date
    • Thread