Thanks Jerry.

I had thought of using setObjectArray but the documentation turned me off, it says:
        "... should almost never need to be invoked explicitly"
'whatever', I used it as:

        transactions.setObjectArray( new NSArray() );
        transactions.updateDisplayedObjects();

and it behaved just as I wanted.

For further lurkers, after implementing:
        if ( mYear.noNeedToFetch() )  {
                transactions.setObjectArray( new NSArray() );
                transactions.updateDisplayedObjects();
        } else {
....
I didn't see any big improvement over the previous version of the app which did a fetch across 100's of records only to return none.

On Feb 16, 2006, at 10:43 AM, Jerry W. Walker wrote:

Hi, Baiss,

I think that setObjectArray() will do the job for you.

Reagards,
Jerry

On Feb 16, 2006, at 1:34 PM, Baiss Eric Magnusson wrote:

How do I clear the objects out of <WODisplayGroup.allObjects()> so that an <updateDisplayedObjects()> will be the empty set, without doing a <fetch>?
--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    [EMAIL PROTECTED]
    203 278-4085        office

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to