Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Mount Point from BSDName / IORegistry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount Point from BSDName / IORegistry



Thank you all for the informations.

I finally made a class that searches the IORegistry and gets continously updated through the add / remove notifications.
In addition this class registers the NSWorkspace Notifications for mount / unmount volumes.
It merges these informations into one array.
So the needed information is available with minimal delay.


On 24.04.2007, at 18:34, Quinn wrote:

Hmmm, I just noticed that this didn't make it to the list...

At 11:45 +0200 19/4/07, devmaillists wrote:
Yes , I am looking for something I can from in Cocoa or CF.

Well, there's nothing to stop you from using BSD level APIs from either of these from Cocoa or CF. However, for a Cocoa app, the following might be considered a better match.


1. prefix the BSD name with "/dev/"

2. get array of local volumes using -[NSWorkspace mountedLocalVolumePaths]

3. iterate array calling statfs on each, stopping when you get one
   f_mntfromname field matches the value from step 1

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/ developer/>
Apple Developer Relations, Developer Technical Support, Core OS/ Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40netdock.de


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Mount Point from BSDName / IORegistry (From: Quinn <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.