• 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: NSTimer problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer problem


  • Subject: Re: NSTimer problem
  • From: "Hamish Allan" <email@hidden>
  • Date: Thu, 17 Jan 2008 18:32:47 +0000

On Jan 17, 2008 6:21 PM,  <email@hidden> wrote:

> timer is an instance variable, not a local variable. Sorry if that wasn't
> clear.

Why, then, in resetTimer, do you set its value directly:

   timer = [[NSTimer alloc] initWithFireDate:[NSDate ...

And then later in the same block call:

   [self setTimer:timer];

??!

Hamish
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSTimer problem (From: email@hidden)

  • Prev by Date: Re: Custom Column Header
  • Next by Date: Re: NSTableView: tableView:objectValueForTableColumn:row called more than necessary when scrolling
  • Previous by thread: Re: NSTimer problem
  • Next by thread: Re: NSTimer problem
  • Index(es):
    • Date
    • Thread