• 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
Disc Recording problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: text formats for documenting object relationships?
  • Next by Date: Displaying a particular path in an NSBrowser?
  • Previous by thread: NSOutlineView & isItemExpanded:
  • Next by thread: RE: Disc Recording problem
  • Index(es):
    • Date
    • Thread