• 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: Firewire / USB load notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Firewire / USB load notifications


  • Subject: Re: Firewire / USB load notifications
  • From: Bob Ippolito <email@hidden>
  • Date: Wed, 28 Apr 2004 23:20:25 -0400

You can, if you want to, translate a mounted volume name to a path.. take a look at setfsent(), getfsent(), endfsent() and friends. The fstab structure has the device name (I believe it's fully qualified with /dev, unlike IOKit) as fs_spec and the file system path as fs_file.

IOKit does however allow for a more general solution. It can provide the BSD names and notifications for block devices whether they are mounted or not (well.. for most block devices, the iPod can be a little different in this respect).

-bob

On Apr 28, 2004, at 10:53 PM, Greg Hulands wrote:

You will have to use the IOKit for this. Using NSWorkspace to get the mounted volumes only gives the path, not the device path. Not sure about CF.

On 29/04/2004, at 3:40 AM, Matt Jaffa wrote:

Hmmm I don't think this got to the list so I am posting it again:


Is there some way to use CoreFoundation, or Cocoa to be notified when a
Firewire HD Device or USB HD Device was plugged in?

And what disk it is (f.e. /dev/rdisk2 or /dev/rdisk3)

Thanks,

Matt


Begin forwarded message:

From: Matt Jaffa <email@hidden>
Date: April 28, 2004 11:04:40 AM MDT
To: Cocoa Dev <email@hidden>
Subject: Firewire / USB load notifications

Hi,

Is there some way to use CoreFoundation, or cocoa to be notified when
a Firewire HD device or USB HD device was plugged in?

Thanks,
Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Fwd: Firewire / USB load notifications (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: Firewire / USB load notifications
  • Next by Date: Re: Moving text-insertion point?
  • Previous by thread: Re: Firewire / USB load notifications
  • Next by thread: Re: Firewire / USB load notifications
  • Index(es):
    • Date
    • Thread