[SOLVED]: WODisplayGroup - simple question (use setObjectArray)
[SOLVED]: WODisplayGroup - simple question (use setObjectArray)
- Subject: [SOLVED]: WODisplayGroup - simple question (use setObjectArray)
- From: Baiss Eric Magnusson <email@hidden>
- Date: Thu, 16 Feb 2006 13:40:51 -0800
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@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden