• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disk burning virtual folder problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disk burning virtual folder problem


  • Subject: Re: Disk burning virtual folder problem
  • From: David Cake <email@hidden>
  • Date: Tue, 20 Oct 2009 01:07:26 +0800

At 2:58 PM +1100 19/10/09, Graham Cox wrote:
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'?

Yes, sorry - clumsily pasted together code from two different methods, rootFolder is passed as folder to another method.
Regards
David
_______________________________________________


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


References: 
 >Disk burning virtual folder problem (From: David Cake <email@hidden>)
 >Re: Disk burning virtual folder problem (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: iPhone: UIDatePicker - setting the time?
  • Next by Date: Re: OSX have that is equivalent to WaitMessage() Win32 API
  • Previous by thread: Re: Disk burning virtual folder problem
  • Next by thread: video DVD burn on Mac OS X?
  • Index(es):
    • Date
    • Thread