• 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
Disk burning virtual folder problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disk burning virtual folder problem


  • Subject: Disk burning virtual folder problem
  • From: David Cake <email@hidden>
  • Date: Mon, 19 Oct 2009 06:58:19 +0800

I'm having a problem with some disk burning code that has me baffled. It works fine on my main development machine, I take it to a second machine (even if I build and run it from within XCode on a second machine) and it mysteriously fails.

I create a burn folder and make it virtual
DRFolder *rootFolder = [DRFolder folderWithPath:[self burnDirPath]]
[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]]];
}


	One one machine it works fine, on another it fails and complains with
***[DRFolder addChild:] only applies to virtual folders
	Any suggestions?

	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


  • Follow-Ups:
    • Re: Disk burning virtual folder problem
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSInvocationOperations and background Threads
  • Next by Date: video DVD burn on Mac OS X?
  • Previous by thread: Re: postinstall script packagemaker
  • Next by thread: Re: Disk burning virtual folder problem
  • Index(es):
    • Date
    • Thread