• 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: notification when device change in /dev
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notification when device change in /dev


  • Subject: Re: notification when device change in /dev
  • From: Sean McBride <email@hidden>
  • Date: Mon, 03 Mar 2014 15:59:18 -0500
  • Organization: Rogue Research Inc.

On Thu, 27 Feb 2014 07:19:26 +0800, Roland King said:

>Is there an NSNotification or some other kind of notification you can
>subscribe to when there's a change in /dev? I'm dealing with an old USB-
>serial device which creates a cu/tty when inserted (and removed when
>removed)  and I'd like to get a notification when that happens so I can
>update UI.
>
>I've hunted around the docs but clearly haven't found the right one yet.
>I wish there were a master list of all system notifications somewhere,
>would be handy to find them, or rule out that they exist.

You might want to look at the source for AMSerialPort, which sounds pretty similar to what you're doing.  It can detect new/removed devices.

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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


  • Prev by Date: Re: Public API method naming for NSString * / const char * parameters
  • Next by Date: Re: NSDocument save incremental file package in-place
  • Previous by thread: Re: Public API method naming for NSString * / const char * parameters
  • Next by thread: Subclasses and @property declarations
  • Index(es):
    • Date
    • Thread