Re: Disk burning virtual folder problem
Re: Disk burning virtual folder problem
- Subject: Re: Disk burning virtual folder problem
- From: Graham Cox <email@hidden>
- Date: Mon, 19 Oct 2009 14:58:56 +1100
On 19/10/2009, at 9:58 AM, David Cake wrote:
DRFolder *rootFolder = [DRFolder folderWithPath:[self burnDirPath]]
^^^ rootFolder
[rootFolder makeVirtual];
and then I try to add some other files to the contents of this
directory
NSURL *source = @"/Volumes/AValidVolumeName"
NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray *filesToAdd;
filesToAdd = [fileManager contentsOfDirectoryAtPath:[source path]
error:nil];
NSEnumerator *enumerator = [filesToAdd objectEnumerator];
NSString *currentFile;
while (currentFile = [enumerator nextObject]) {
[folder addChild:[DRFile fileWithPath:[[source path]
stringByAppendingFormat: @"/%@", currentFile]]];
}
^^^ folder
Intentional? I don't see where 'folder' comes from. Shouldn't that be
'rootFolder'?
--Graham
_______________________________________________
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