how to remove SetupPanel window for CD Recording in Mac

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

  1. mshivakumar macrumors newbie

    Joined:
    Dec 9, 2009
    #1
    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.

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

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

    Thanku.....All
     

    Attached Files:

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

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #2
    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

    http://developer.apple.com/mac/libr.../DiscRecordingUIFrameworkReference/index.html
    http://developer.apple.com/mac/libr...urn_h/index.html#//apple_ref/c/tdef/DRBurnRef

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

    http://developer.apple.com/mac/libr...x.html#//apple_ref/c/func/DRBurnSetProperties
    http://developer.apple.com/mac/libr...f/DRCoreBurn_h/index.html#HeaderDoc_constants



    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

    Joined:
    Dec 9, 2009
    #3
    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

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #4
    Cannot do what?
     
  5. mshivakumar thread starter macrumors newbie

    Joined:
    Dec 9, 2009
    #5
    hi

    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