• 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
[OT] Any way to make more session?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] Any way to make more session?


  • Subject: [OT] Any way to make more session?
  • From: Sanri Parov <email@hidden>
  • Date: Thu, 1 Jan 2004 15:54:19 +0100

Hi everybody,

first of all Happy New Year!!!
Sorry for the cross-post (both here and in discrecording lists) but I'm
stuck with this tiny problem.
I'm trying to make a program which burns one session for one iTunes
playlist. It works for the first time, but when I come to the second
one, the program overwrites everything from scratch.
I've decided to send you a little snippet of code, which is where the
burning process is done.
What am I doing wrong?


// I create a virtual folder
DRFolder *discRoot = [DRFolder
virtualFolderWithName:playlist_corrente];
for(contatore=0;contatore<[playlist_files count];contatore++)
{
DRFile *fsObj;
fsObj = [DRFile fileWithPath:[playlist_files objectAtIndex:contatore]];
[discRoot addChild:fsObj];
}


// Creating a track from a folder
[discRoot
setExplicitFilesystemMask:DRFilesystemInclusionMaskJoliet];
DRTrack *track=[DRTrack trackForRootFolder:discRoot];

// Setting track properties
NSMutableDictionary *track_prop=[NSMutableDictionary
dictionaryWithDictionary:[track properties]];
[track_prop setValue: @"DRVerificationTypeNone"
forKey:@"DRVerificationTypeKey"];
[track setProperties:track_prop];

// Burn, baby, burn!!!!
DRBurn *burn =[[DRBurn alloc] initWithDevice:mast];
NSMutableDictionary *burn_prop=[NSMutableDictionary
dictionaryWithDictionary:[track properties]];
[burn_prop setValue:@"DRBurnCompletionActionMount"
forKey:@"DRBurnCompletionActionKey"];
[burn_prop setValue:@"DRBurnStrategyCDTAO"
forKey:@"DRBurnStrategyKey"];
[burn setProperties:burn_prop];
[burn setAppendable:YES];
[burn setVerifyDisc:NO];
[burn setRequestedBurnSpeed:[num_vel floatValue]];
[[DRNotificationCenter currentRunLoopCenter] addObserver:self
selector:@selector(burnNotification:)
name:DRBurnStatusChangedNotification object:burn];
[burn writeLayout:track];
return(0);




--
Sanri Parov
_______________________________________________
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.

  • Prev by Date: Re: NSSearchField and Mac OS X 10.2
  • Next by Date: Does +isSubclassOfClass work?
  • Previous by thread: Re: NSSearchField and Mac OS X 10.2
  • Next by thread: Does +isSubclassOfClass work?
  • Index(es):
    • Date
    • Thread