ADC Home > Reference Library > Reference > Audio > Carbon > Disc Recording Framework Reference

 


DRDevice(StatusConvenience)

Extends Class:
Declared In:

Overview

This category on DRDevice defines methods that make retrieving the more commonly accessed DRDevice status dictionary properties easier.



Methods

-bsdName
-mediaIsAppendable
-mediaIsBlank
-mediaIsBusy
-mediaIsErasable
-mediaIsOverwritable
-mediaIsPresent
-mediaIsReserved
-mediaIsTransitioning
-mediaSpaceFree
-mediaSpaceOverwritable
-mediaSpaceUsed
-mediaType
-trayIsOpen

bsdName


- (NSString*) bsdName; 
Discussion

Returns the bsd /dev node name.


mediaIsAppendable


- (BOOL) mediaIsAppendable; 
Discussion

Returns YES if the media in the device can have more data appended to any existing data.


mediaIsBlank


- (BOOL) mediaIsBlank; 
Discussion

Returns YES the media in the device is blank.


mediaIsBusy


- (BOOL) mediaIsBusy; 
Discussion

Returns YES if the media is in use by some process - even the one making this call.


mediaIsErasable


- (BOOL) mediaIsErasable; 
Discussion

Returns YES if the media can be erased (i.e., CD-RW, DVD-RW, etc).


mediaIsOverwritable


- (BOOL) mediaIsOverwritable; 
Discussion

Returns YES if the media in the device can be fully (re)written.


mediaIsPresent


- (BOOL) mediaIsPresent; 
Discussion

Reports the presence of the media.


mediaIsReserved


- (BOOL) mediaIsReserved; 
Discussion

Returns YES if the application calling this method currently holds the reservation on the media.


mediaIsTransitioning


- (BOOL) mediaIsTransitioning; 
Discussion

Returns YES if the media is in transition (spinning up or down for example).


mediaSpaceFree


- (DRMSF*) mediaSpaceFree; 
Discussion

Returns the amount of free space on the media.


mediaSpaceOverwritable


- (DRMSF*) mediaSpaceOverwritable; 
Discussion

Returns the amount of writable space on the media.


mediaSpaceUsed


- (DRMSF*) mediaSpaceUsed; 
Discussion

Returns the amount of used space on the media.


mediaType


- (NSString*) mediaType; 
Discussion

Returns the type of media currently inserted into the device.


trayIsOpen


- (BOOL) trayIsOpen; 
Return Value

Returns YES if the device has a tray and it is open.

Discussion

Reports the tray state of the device.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2008-04-01