Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering an array of EO objects in D2J (making progress - learning heaps)



JP,

Have taken a different approach, more in a direction to what you have
suggested.

Have switch my efforts now from altering the entity class (returning a
filtered array) to customising the controller classes (specifically
EOListController). I haven't got the controller factory worked out yet,
but have been concentrating on the controllers themselves.

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.

Isn't a data source a requirement? Would it be not created at this
stage? What stage could I try my trick and have everything in place?

Come to think of it, is the EOListController just an empty container,
and should I be concentrating on a table controller embedded in there?
So why would there be a display group if it isn't displaying any data?

Sigh, so much to learn. So little to learn with!

Ray.

PS if it is any help, here is a dump of the toString() method for the
custom list controller at the time I am trying to apply my
customisation:
CustomClientTimeListController[5d33e1]: type name = <NULL>, connected,
2 subcontroller(s), component prepared, visible, component =
EOView[7359f7] (minimum size = 513x467, 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

On 11/11/2003, at 5:48, Jean Pierre Malrieu wrote:

> Given the problems you are facing, I would try another approch:
> generate your list controler in code with the function
> listFetchSpecificationWithEntityName (String  entityName,
> EOFetchSpecification  fetchSpecification);
> Then call runControllerInNewFrame.
>
> Look at the EOControllerFactory class. You can't do serious D2JC
> without it (sorry if you are already familiar with it)
>
> Hope this helps.
>
> JP.
_______________________________________________
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.

References: 
 >Re: Filtering an array of EO objects (next hurdle) (From: Jean Pierre Malrieu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.