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

Re: Singleton and NSTimer


  • Subject: Re: Singleton and NSTimer
  • From: Dave Hersey <email@hidden>
  • Date: Wed, 06 Jul 2005 18:03:38 -0400

On 7/6/05 5:59 PM, "Brad Peterson" <email@hidden> wrote:

> Hi all,
>
> I have a singleton object which, in its init method,
> creates a timer:
>
> [ NSTimer timerWithTimeInterval: 4 target: self
> selector: @selector(timedPurge) userInfo: nil repeats:
> YES ];
>
> While I can tell that the timer is created, it never
> seems to fire.

Try @selector(timedPurge:)

(note the colon)

- dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Singleton and NSTimer (From: Brad Peterson <email@hidden>)

  • Prev by Date: Re: NSUserDefaultsController and NSTextField
  • Next by Date: Re: Singleton and NSTimer
  • Previous by thread: Singleton and NSTimer
  • Next by thread: Re: Singleton and NSTimer
  • Index(es):
    • Date
    • Thread