Hi all --
Does anyone know if it's possible to access an object's private variable?
Specifically, I want to get at WODisplayGroup._displayedObjects so I can tell how many objects match the query settings. With batching turned on, displayedObjects() only returns the current batch of objects.
The only solution I've come up with so far is:
int pp = numberOfObjectsPerBatch();
int pg = currentBatchIndex();
NSArray sel = selectedObjects();
setNumberOfObjectsPerBatch(0);
countOfQualifiedObjects = new Integer( displayedObjects().count() );
setNumberOfObjectsPerBatch( pp );
setCurrentBatchIndex( pg );
setSelectedObjects( sel );
Thanks,
Alex Johnson
|| | ||| || | ||| | | | || || |||
\\ SITE 9 \\ SITE9.COM \\ 312.670.8469 \\
_______________________________________________
WebObjects-dev mailing list