• 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
Re: Access a private variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access a private variable?


  • Subject: Re: Access a private variable?
  • From: Robert Walker <email@hidden>
  • Date: Fri, 15 Jul 2005 16:58:45 -0400

It is certainly the case that the features of that class work as described; the bug is in the fact that there is no way (except object rape) to get the count of the in-memory-filtered objects.

Yep, I agree. Except for the terminology used. "Missing features" are not bugs. They are simply "Missing features."


On Jul 15, 2005, at 12:35 PM, Sacha Mallais wrote:

On Jul 15, 2005, at 6:34 AM, Robert Walker wrote:


displayGroup.setNumberOfObjectsPerBatch(0);
displayGroup.displayedObjects().count() 60 (the number of qualified objects -- this is what I want)



That seems like a bug to me. Maybe that's why I still don't use display groups. :-)



From my interpretation of the documentation on WODisplayGroup this does not sound like a bug to me. The method displayGroup.allObjects() contains an array of objects fetched into the display group. There are a few methods that can change the collection, but qualifyDisplayGroup() is not one of them. The method qualifyDisplayGroup() does an "in-memory" filter of the allObjects collection, so reporting from allObjects() still contains all objects fetched. Using qualifyDisplayGroup() with a different qualifier still needs access to the fetched collection since it does not fetch from the data source.


If you use qualifyDataSource() instead of qualifyDisplayGroup() a fetch does occur and allObjects() will receive a newly qualified collection.


It is certainly the case that the features of that class work as described; the bug is in the fact that there is no way (except object rape) to get the count of the in-memory-filtered objects.



sacha


-- Sacha Michel Mallais President / Developer Extraodinaire Global Village Consulting Inc. http://www.global-village.net/ The bird of paradise alights only upon the hand that does not grasp.



_______________________________________________ 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
  • Follow-Ups:
    • Re: Access a private variable?
      • From: Sacha Mallais <email@hidden>
References: 
 >Access a private variable? (From: Alex Johnson <email@hidden>)
 >Re: Access a private variable? (From: Sacha Mallais <email@hidden>)
 >Re: Access a private variable? (From: Alex Johnson <email@hidden>)
 >Re: Access a private variable? (From: Sacha Mallais <email@hidden>)
 >Re: Access a private variable? (From: Robert Walker <email@hidden>)
 >Re: Access a private variable? (From: Sacha Mallais <email@hidden>)

  • Prev by Date: passing parameters to webboject application
  • Next by Date: Re: Access a private variable?
  • Previous by thread: Re: Access a private variable?
  • Next by thread: Re: Access a private variable?
  • Index(es):
    • Date
    • Thread