• 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
How to loop until kill command sent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to loop until kill command sent?


  • Subject: How to loop until kill command sent?
  • From: "Devraj Mukherjee" <email@hidden>
  • Date: Tue, 17 Jul 2007 14:05:45 +1000

Hi everyone,

I am trying to write a daemon style application in Objective-C. The
application listens to a socket for messages, and performs various
actions based on that.

I am using NSRunLoop to keep listening to the socket and respond to
the events using notifications. If the application is a sent a kill
signal I would like it to die gracefully.

1. How do I respond to kill signals sent to my application
2. Should I be using a threading model instead of the NSRunLoop

Thanks for your time

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)
_______________________________________________

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


  • Follow-Ups:
    • Re: How to loop until kill command sent?
      • From: John Labovitz <email@hidden>
    • Re: How to loop until kill command sent?
      • From: Seth Pellegrino <email@hidden>
  • Prev by Date: Re: Custom NSMenuItem/NSPopupButtonCell Drawing
  • Next by Date: Re: How to loop until kill command sent?
  • Previous by thread: Re: Getting an NSAttributedString from NSData/NSTextView using Core Data
  • Next by thread: Re: How to loop until kill command sent?
  • Index(es):
    • Date
    • Thread