• 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
[SOLVED]: WODisplayGroup - simple question (use setObjectArray)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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
References: 
 >WODisplayGroup - simple question (From: Baiss Eric Magnusson <email@hidden>)
 >Re: WODisplayGroup - simple question (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: WOQuickTime
  • Next by Date: objectEnumerator vs objectAtIndex
  • Previous by thread: Re: WODisplayGroup - simple question
  • Next by thread: IOException serializing objects to XML
  • Index(es):
    • Date
    • Thread