|
Mac Dev Center
Mac OS X Reference Library Drivers, Kernel, & Hardware: User-Space Device Access 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.
Presents a setup panel as a sheet.
Invoked when the user clicks the panel's cancel button.
Invoked when the user clicks the panel's close button.
Invoked when the user changes the device selected in the device popup.
Invoked when the user clicks the panel's eject button.
Initializes the receiver to use the panel from the nibName nib file.
Invoked when the media state of the currently selected device changes. This can include media being ejected, inserted, being used by another application, etc.
Invoked when the user clicks the panel's default button.
Invoked when the user clicks the panel's open button.
Displays the receiver and begins its event loop.
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.
beginSetupSheetForWindow:modalDelegate:didEndSelector:contextInfo: |
Presents a setup panel as a sheet.
- (void) beginSetupSheetForWindow:(NSWindow*)owner modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void*)contextInfo;
ownerThe window the sheet will be attached to. If owner is not nil, the setup panel slides down as a sheet running as a document modal window. If owner is nil, this is an error.
modalDelegateThe modal delegate. The object that implements the didEndSelector.
didEndSelectorSelector to invoke when the sheet ends. This selector is optional.
If implemented by the modal delegate, this method is invoked after
the modal session has ended, but before dismissing the same panel.
didEndSelector may dismiss the save panel itself; otherwise it will
be dismissed on return from the method. didEndSelector should have
the following signature:
- (void)setupPanelDidEnd:(DRSetupPanel*)panel returnCode:(int)returnCode contextInfo:(void*)contextInfo;
contextInfoContext information to be passed when the selector named by didEndSelector is invoked.
cancel: |
Invoked when the user clicks the panel's cancel button.
- (IBAction) cancel:(id)sender;
senderThe object that invoked this method.
close: |
Invoked when the user clicks the panel's close button.
- (IBAction) close:(id)sender;
senderThe object that invoked this method.
deviceSelectionChanged: |
Invoked when the user changes the device selected in the device popup.
deviceThe newly selected device, or nil.
If 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;
senderThe object that invoked this method.
initWithNibName: |
Initializes the receiver to use the panel from the nibName nib file.
nibNameNib filename.
The 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;
statusThe new device status dictionary.
YES 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;
senderThe object that invoked this method.
open: |
Invoked when the user clicks the panel's open button.
- (IBAction) open:(id)sender;
senderThe object that invoked this method.
runSetupPanel |
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;
Last Updated: 2009-08-13