Re: How to get hard drive name
Re: How to get hard drive name
- Subject: Re: How to get hard drive name
- From: "Ian G. Gillespie" <email@hidden>
- Date: Tue, 20 Jan 2004 12:21:12 -0800
Thanks for the reply. I couldn't find a NSUserHome function.
Regardless, when I have used the stringByExpandingTildeInPath in the
past it only gives me a path like, /Users/username/Some Directory;
that is, it doesn't seem to give the name of the hard drive. Any other
suggestions?
~Ian
Use the stringByExpandingTildeInPath on the NSUserHome function.
Then walk up the line to the first path component (see NSString
methods). This should work just fine.
- J
On Jan 20, 2004, at 2:30 PM, Ian G. Gillespie wrote:
Greetings,
Does anyone know how I can get the name of a user's hard drive, or
the hard drive partition on which their user account resides?
~Ian
_______________________________________________
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.