opensubscriber
   Find in this group all groups
 
Unknown more information…

d : discrecording@lists.apple.com 16 November 2005 • 4:39AM -0500

Re: erase before burn
by Benjámin Salánki

REPLY TO AUTHOR
 
REPLY TO GROUP




Thank you! I must have overlooked this in the docs!

Ben

On Nov 15, 2005, at 9:42 PM, Ed Wynne wrote:

> On Nov 15, 2005, at 3:29 PM, Benjámin Salánki wrote:
>> On Nov 15, 2005, at 9:30 PM, Ed Wynne wrote:
>>> On Nov 15, 2005, at 2:19 PM, Benjámin Salánki wrote:
>>>> I have a method that checks if there is available free space on  
>>>> a disc to fit my data on it.
>>>>
>>>> But if a rewritable disc is inserted into the drive and i choose  
>>>> erase before burn my app still calculates the free space that is  
>>>> available on the yet unerased disc.
>>>>
>>>> My question is if i can somehow query if the erase before burn  
>>>> option was selected in the DRBurnSetupPanel, as I have my method  
>>>> check for the size right after the setup panel ended.
>>>>
>>>> Or should I check at some other point before the burning starts?
>>>
>>> You should check the (k)DRDeviceMediaBlocksOverwritable instead  
>>> of the free space. For rewritable media, overwritable will be the  
>>> value of free space** after the disc has been erased.
>>>
>> yes, but what if i have a CDRW that has 400 megs of free space  
>> available and my data is 450 megs, but i don't check the erase  
>> before burn option. In this case the burn would start and fail at  
>> the end, because the data does not fit on the disc.
>
> Hi Ben,
>
> OK, I think I get what your asking now. You can query the erase-
> before-burn setting of the resulting burn object, that you can get  
> from the DRBurnSetupPanel, by getting its properties dictionary and  
> checking its (k)DRBurnOverwriteDiscKey. As documented, if the key  
> is not present, its value is assumed of false.
>
> -Ed
>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Discrecording mailing list      (Discrecording@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/discrecording/subscriber%40opensubscriber.com

This email sent to subscriber@opensubscriber.c

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.