• 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: numbers on web output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numbers on web output


  • Subject: Re: numbers on web output
  • From: Wes James <email@hidden>
  • Date: Tue, 10 Aug 2004 16:12:33 -0600

Thanks for the help with the lineCount issue.  I have a question about
this.  I got this to work by creating a variable

protected int lineCount;

When I created this variable I also told it to create the "A method
setting a value" and "A method  returning a value":

public int lineCount(){
  lineCount++;
  return lineCount;
}

public void setLineCount(int newLineCount){
   lineCount = newLineCount;
}

I added the linCount++ to see if this would make each index value+1
and it worked.

Art what is the difference between a public instance var and accessor
methods in this case.  Is the variable lineCount as a protected
variable with the methods above what you are talking about?

thanks,

wj
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: numbers on web output
      • From: Art Isbell <email@hidden>
References: 
 >numbers on web output (From: Wes James <email@hidden>)
 >Re: numbers on web output (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: WhyWebObjects.com Info
  • Next by Date: Re: 10.3.5, Xcode 1.5 and WO 5.2.3
  • Previous by thread: Re: numbers on web output
  • Next by thread: Re: numbers on web output
  • Index(es):
    • Date
    • Thread