• 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: Foundation tool question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Foundation tool question


  • Subject: Re: Foundation tool question
  • From: John Hörnkvist <email@hidden>
  • Date: Wed, 30 May 2001 11:33:43 +0200

On Wednesday, May 30, 2001, at 11:21 AM, Rob Rix wrote:

In the main file, I have a timer set up that calls a method in the main work object every five seconds. After that, not a thing. Now, I understand why it's quitting. That's kind of slap-your-forehead, "of course!" behaviour; it's obvious. My question is: How should I keep it from quitting?

Start a run loop when you're done with you initializations.

Look at the docs for NSRunLoop.

IIRC, this will do what you want:
[[NSRunLoop currentRunLoop] run];


Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com


  • Follow-Ups:
    • Re: Foundation tool question
      • From: Rob Rix <email@hidden>
References: 
 >Foundation tool question (From: Rob Rix <email@hidden>)

  • Prev by Date: Foundation tool question
  • Next by Date: Stepping through frames of an NSMovie
  • Previous by thread: Foundation tool question
  • Next by thread: Re: Foundation tool question
  • Index(es):
    • Date
    • Thread