• 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
Looking for an example program / objective-C foundation tool which maintains a run loop.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for an example program / objective-C foundation tool which maintains a run loop.


  • Subject: Looking for an example program / objective-C foundation tool which maintains a run loop.
  • From: George Lawrence Storm <email@hidden>
  • Date: Fri, 9 Sep 2005 12:21:56 -0700

I need to write an objective-C foundation tool which does not terminated except when instructed to. Additionally it needs to continue to respond to additional input as it is called from another application and monitor for changes on the USB bus.

What I want it to do is:

When First launched:
-> create a list of objective-C objects based on attached custom USB hardware
-> perform a function based on the command line argument
-> return result
-> wait for next call & idle


When idling:
-> monitor the USB bus in order to add / delete objects from our list based on insertion / deletion of our custom USB hardware
-> terminate if none of our custom USB hardware exists
-> otherwise wait for next call & idle


On Subsequent call
-> perform a function based on the command line argument
-> return result
-> wait for next call & idle

Currently I have all this running in a Cocoa app, however they now want to be able to call it from the UNIX command line.

Can anyone direct me to an example program which maintains a run loop (extra points if it monitors for USB insertions / deletions)?

-----

George Lawrence Storm
Macintosh Applications Development
Edmonds (Seattle), Washington
E-mail: <email@hidden>

_______________________________________________
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


  • Prev by Date: Ordered NSTreeController and NSOutlineView
  • Next by Date: Re: [ANN] HOM paper available
  • Previous by thread: Ordered NSTreeController and NSOutlineView
  • Next by thread: Core Data, fetched property question
  • Index(es):
    • Date
    • Thread