• 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: Ricardo Strausz <email@hidden>
  • Date: Thu, 14 Jul 2005 17:17:57 -0500

Isn't it displayGroup.allObjects().count()??

On Jul 14, 2005, at 5:08 PM, Alex Johnson wrote:

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
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev


--
Ricardo Strausz
email@hidden
Business Applied C Objects
恐龍 駝鳥
+5255 5437 8205


 _______________________________________________
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: 
 >Access a private variable? (From: Alex Johnson <email@hidden>)

  • Prev by Date: Re: Access a private variable?
  • Next by Date: Re: Access a private variable?
  • Previous by thread: Re: Access a private variable?
  • Next by thread: View Installed WebObjects Version
  • Index(es):
    • Date
    • Thread