Re: Disk Image Volumes
Re: Disk Image Volumes
- Subject: Re: Disk Image Volumes
- From: Lorenzo <email@hidden>
- Date: Mon, 05 May 2003 21:09:14 +0200
Hi Finlay,
hdiutil info -plist
worked fine!
Only I had to use the output
NSFileHandle *theFileH = [NSFileHandle
fileHandleForWritingAtPath:@"/thefile.plist"];
[task setStandardOutput:theFileH];
because the data returned by hdiutil through a pipe was truncated to 4096
characters. Also, I found that the mount-point is the object at the index 7
of an array. I hope the dictionary structure doesn't change.
Thank you so much.
Best Regards
--
Lorenzo
email: email@hidden
>
From: Finlay Dobbie <email@hidden>
>
Date: Mon, 5 May 2003 17:33:21 +0100
>
To: Andreas Schempp <email@hidden>
>
Cc: Lorenzo <email@hidden>, <email@hidden>
>
Subject: Re: Disk Image Volumes
>
>
>
On Monday, May 5, 2003, at 05:17 pm, Andreas Schempp wrote:
>
>
> Try to use [[NSWorkspace sharedWorkspace] mountedRemovableMedia]
>
>
>
> this returns an array, containg all removeable media.
>
>
Doesn't tell you if it's a disk image.
>
>
Your best bet will probably be to use the output of "hdiutil info
>
-plist".
>
>
-- Finlay
_______________________________________________
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.