Disc Recording problem
Disc Recording problem
- Subject: Disc Recording problem
- From: Greg Hulands <email@hidden>
- Date: Wed, 12 Feb 2003 13:49:04 +1000
Hi,
I am trying to get disc recording to work in my app. I have set the
delegate of the setup panel, but only the method
- (BOOL)setupPanel:(DRSetupPanel *)aPanel deviceCouldBeTarget:(DRDevice
*)device
gets called. Disc recording never calls
- (BOOL)setupPanel:(DRSetupPanel *)aPanel mediaIsSuitable:(NSDictionary
*)status promptString:(NSString **)prompt
in my delegate when I insert a blank cd-r. It does however call it in
the data burn example. I have the code very similar to what was in the
example.
- (void)makeMP3AudioCD
{
DRTrack *track = [self makeMP3Track];
if (track)
{
DRBurnSetupPanel *bsp = [DRBurnSetupPanel setupPanel];
[bsp setDelegate:self];
if ([bsp runSetupPanel] == NSOKButton)
{
DRBurnProgressPanel *bpp = [DRBurnProgressPanel
progressPanel];
[bpp setDelegate:self];
[bpp beginProgressPanelForBurn:[bsp burnObject]
layout:track];
}
else
{
//Clean up files
NSFileManager *fm = [NSFileManager defaultManager];
if (_burningDelegate)
[_burningDelegate playlist:self
hasUpdatedMessage:@"Burning Cancelled, Cleaning Up Temporary Files"];
[fm removeFileAtPath:temp handler:nil];
[temp autorelease];
temp = nil;
if (_burningDelegate)
[_burningDelegate playlistCancelledBuringProcess:self];
}
}
}
Does anyone know under what conditions the delegate would not call the
mediaIsSuitable method on the delegate. Or is there an obvious omission
I have made in the code.
Regards,
Greg
_______________________________________________
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.