how to remove SetupPanel window for CD Recording in Mac

Discussion in 'Mac Programming' started by mshivakumar, Dec 10, 2009.

  1. mshivakumar macrumors newbie

    Dec 9, 2009
    Hi All,

    When i want to burn CD, A panel window opened,In that "Burn" button is available,then if i click it,starts the burning process.

    Here I dont want to use this panel window,how can i done the burning process manually.

    This is the code for opening panel window and to create DRBurn Object.

    DRBurnSetupPanel *bsp = [DRBurnSetupPanel setupPanel];......Stat1(say)
    (stat1 opens the Panel window, that i attached below)

    After that i called this method to create DRBurn object. In Stat3 , parameter "panel" is used and thats creating Burn object.

    [bsp beginSetupSheetForWindow:_myParentWindow
    didEndSelector:@selector(burnSetupPanelDidEnd:retu rnCode:contextInfo
    contextInfo:nil]; say stat2. 
    burnSetupPanelDidEnd method is follows..
    - (void) burnSetupPanelDidEndDRBurnSetupPanel *)panel returnCodeint)returnCode contextInfovoid *)contextInfo {
    DRBurn *burn=[panel burnObject]; //Here we are getting burn object
    Any to remove this panel window. ....... if anyone knows...

    if Anyone not understand my problem , plz give comment where did u not understand ,so i can express more clear....


    Attached Files:

    • UI .png
      UI .png
      File size:
      67.4 KB
  2. Detrius macrumors 68000

    Sep 10, 2008
    Asheville, NC
    I've never done this, but here are a few obvious pointers:

    If you don't want the panel, don't use DRBurnSetupPanel.

    Next, check out DRBurnSession and DRBurnRef

    It looks like this can be done without the setup dialog, but you have to set the properties yourself.

    I should probably point out, though, that this setup dialog is what your users will be accustomed to. Don't try to duplicate its functionality just because you might not *like* the dialog. This would count as really bad UI design. Of course, I don't know *why* you're doing this, hence the above five minutes of research with google and the developer documentation.
  3. mshivakumar thread starter macrumors newbie

    Dec 9, 2009
    Thanku...Detrius...for help

    cannot we inherit the properties of the panel ,instead of setting properties to a DRburn object to burn CD...
  4. Detrius macrumors 68000

    Sep 10, 2008
    Asheville, NC
    Cannot do what?
  5. mshivakumar thread starter macrumors newbie

    Dec 9, 2009

    From the panel , burn object properties gained[as i know],so without using this panel ,can we inherit the properties of panel and to create new Burn object,so i can use this parameter in method to burn the cd...

Share This Page