Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mshivakumar

macrumors newbie
Original poster
Dec 9, 2009
6
0
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
 

Attachments

  • UI .png
    UI .png
    67.4 KB · Views: 96
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.
 
Thanku...Detrius...for help

cannot we inherit the properties of the panel ,instead of setting properties to a DRburn object to burn CD...
 
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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.