• 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
Static variables in methods called by a timer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Static variables in methods called by a timer?


  • Subject: Static variables in methods called by a timer?
  • From: David Newberry <email@hidden>
  • Date: Sun, 10 Nov 2002 10:41:47 -0800

Hello all,

I seem to have run into a problem with using static variables in a method which is called by a timer. Maybe I have missed the mark here, but on two variables that I recently changed to static in this method, they always report the value 0 (they're floats) and in the debugger are shown as "out of scope". Am I not allowed to do this, or perhaps did I simply just make some other bizarre mistake?

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

  • Prev by Date: Using CVS with Project Builder!!!???
  • Next by Date: Re: Move a file to the Trash
  • Previous by thread: Re: Using CVS with Project Builder!!!???
  • Next by thread: Languages (was Re: To all cocoa developers...)
  • Index(es):
    • Date
    • Thread