|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > Audio > Carbon > Disc Recording UI Framework Reference
|
DRSetupPanel |
| Inherits from: | |
| Declared In: |
This class is the base class for setup panels in the DiscRecordingUI framework. It provides a base framework for handling device selection, media ejection and confirming or cancelling the panel.
beginSetupSheetForWindow:modalDelegate:didEndSelector:contextInfo: |
Presents a setup panel as a sheet.
- (void) beginSetupSheetForWindow:(NSWindow*)owner modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void*)contextInfo;
ownermodalDelegatedidEndSelector- (void)setupPanelDidEnd:(DRSetupPanel*)panel returnCode:(int)returnCode contextInfo:(void*)contextInfo;
contextInfocancel: |
Invoked when the user clicks the panel's cancel button.
- (IBAction) cancel:(id)sender;
senderclose: |
Invoked when the user clicks the panel's close button.
- (IBAction) close:(id)sender;
senderdeviceSelectionChanged: |
Invoked when the user changes the device selected in the device popup.
- (void) deviceSelectionChanged:(DRDevice*)device;
deviceIf the device currently selected is disconnected from the machine, the device popup will remove the device from itself and select a new device. This will act as if the user changed the device selected. Because of this, device may be nil if no eligible devices are currently connected to the machine.
eject: |
Invoked when the user clicks the panel's eject button.
- (IBAction) eject:(id)sender;
senderinitWithNibName: |
Initializes the receiver to use the panel from the nibName nib file.
- (id) initWithNibName:(NSString*)nibName;
nibNameThe receiver.
mediaStateChanged: |
Invoked when the media state of the currently selected device changes. This can include media being ejected, inserted, being used by another application, etc.
- (BOOL) mediaStateChanged:(NSDictionary*)status;
statusYES if the inserted media is valid for use, NO otherwise.
ok: |
Invoked when the user clicks the panel's default button.
- (IBAction) ok:(id)sender;
senderopen: |
Invoked when the user clicks the panel's open button.
- (IBAction) open:(id)sender;
senderrunSetupPanel |
Displays the receiver and begins its event loop.
- (NSInteger) runSetupPanel;
Returns NSOKButton (if the user clicks the default button) or NSCancelButton (if the user clicks the Cancel button).
Invokes NSApplication's runModalForWindow: method with self as the argument.
setupForDisplay |
This method is called immediately before panel is displayed on the screen. Any setup to be done in preparation for display should be done here.
- (void) setupForDisplay;
|