Re: showing a list of mounted volumes with icon
Re: showing a list of mounted volumes with icon
- Subject: Re: showing a list of mounted volumes with icon
- From: Angelo Chen <email@hidden>
- Date: Sat, 24 Apr 2010 22:53:40 +0800 (HKT)
Hi James,
NavCreateChooseVolumeDialog will do, thanks. I was trying to find a sample code that uses the function in the net, but none so far, any idea where I can find a sample code for this function?
Thanks,
Angelo
--- 2010年4月24日 星期六,James Walker <email@hidden> 寫道﹕
寄件人: James Walker <email@hidden>
主題: Re: showing a list of mounted volumes with icon
收件人: email@hidden
日期: 2010年4月24日,星期六,上午9:23
On 4/23/2010 5:47 PM, Angelo Chen wrote:
> I'd just like show a collection of mounted volumes in a sheet and let
user choose one of them.
Carbon has a call just for this (NavCreateChooseVolumeDialog) but I
don't see anything so easy for Cocoa. You can get a list of volumes
with NSFileManager, get their icons with NSWorkspace, and then build
your own sheet, maybe using NSTableView.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
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
_______________________________________________
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