Re: Mount Point from BSDName / IORegistry
Re: Mount Point from BSDName / IORegistry
- Subject: Re: Mount Point from BSDName / IORegistry
- From: devmaillists <email@hidden>
- Date: Thu, 26 Apr 2007 08:28:41 +0200
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