Re: WODisplayGroup.displayableObjects()?
Re: WODisplayGroup.displayableObjects()?
- Subject: Re: WODisplayGroup.displayableObjects()?
- From: "John Boynton" <email@hidden>
- Date: Thu, 03 Jul 2003 17:20:37 -0700
email@hidden writes:
> Unfortunately, doing the above means that the filtering would be
>repeated, once in your method and once when the display group is
>creating its displayed objects array.
Yes this is what I wanted to avoid.
>You might be able to avoid this
>by not setting a local qualifier
or delegate
> on the display group. Instead in your
>code, you would send the displayGroup an allObjects() message prior to
>displaying the objects. You would then apply the local qualifier
>programmatically, get the count of the resulting array, and send the
>display group a setObjectArray() message with this filtered array as an
>argument followed by an updateDisplayedObjects() message which should
>apply any sort orderings and batching.
Or, since allObjects() will be filtered right after the fetch, my
(homespun) batch navigator can just get allObjects().count().
Sounds like the way to go. Thanks Art.
John
_______________________________________________
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.