IKScannerDeviceView Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Quartz.framework/ImageKit.framework |
| Availability | Available in OS X v10.6 and later. |
| Declared in | IKScannerDeviceView.h |
Overview
The IKScannerDeviceView class displays a view that allows scanning. It can be customized by specifying the display mode. The delegate receives the scanned data and must implement the IKScannerDeviceViewDelegate protocol.
Tasks
Setting the Scanner Device
-
scannerDeviceproperty
Display Mode of the Device View
-
modeproperty -
hasDisplayModeAdvancedproperty -
hasDisplayModeSimpleproperty
Configuring Downloading
-
displaysDownloadsDirectoryControlproperty -
downloadsDirectoryproperty -
transferModeproperty -
documentNameproperty
Specifying a Post Processing Application
-
displaysPostProcessApplicationControlproperty -
postProcessApplicationproperty
Getting and Setting the Delegate
-
delegateproperty
Customizing Button Labels
-
overviewControlLabelproperty -
scanControlLabelproperty
Properties
delegate
The scanner device delegate
Discussion
The delegate is sent notifications of errors as well as the completed scan content.
The delegate must conform to the IKScannerDeviceViewDelegate protocol.
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hdisplaysDownloadsDirectoryControl
Determines whether the downloads directory control is displayed.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
IKScannerDeviceView.hdisplaysPostProcessApplicationControl
Specifies whether the post processing application control is displayed.
Discussion
The post processing application is only relevant when the transfer mode is IKScannerDeviceViewTransferModeFileBased.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
IKScannerDeviceView.hdocumentName
Returns the document name.
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hdownloadsDirectory
The directory where scans are saved.
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hhasDisplayModeAdvanced
Returns whether the scanner view is using the advanced display mode.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
IKScannerDeviceView.hhasDisplayModeSimple
Returns whether the scanner view is using the simple display mode.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
IKScannerDeviceView.hmode
The display mode used by the device view.
Discussion
The possible constants are described in “Scanner View Display Mode.”
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hoverviewControlLabel
Allows customization of the “Overview” label.
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hpostProcessApplication
The URL of the application to use for post processing of the scan.
Discussion
The post processing application is only relevant when the transfer mode is IKScannerDeviceViewTransferModeFileBased.
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hscanControlLabel
Allows customization of the “Scan” label.
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hscannerDevice
The device used for scanning
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.htransferMode
Determines how the scanned content is provided to the delegate.
Discussion
The supported constants are defined in “Scanner Transfer Modes.”
Availability
- Available in OS X v10.6 and later.
Declared In
IKScannerDeviceView.hConstants
Scanner Transfer Modes
These constants determine how the scanner data is returned to the delegate. They are used by the transferMode property.
enum {
IKScannerDeviceViewTransferModeFileBased = 0,
IKScannerDeviceViewTransferModeMemoryBased
};
typedef NSInteger IKScannerDeviceViewTransferMode;
Constants
IKScannerDeviceViewTransferModeFileBasedThe scanned content will be saved to the specified download directory.
Available in OS X v10.6 and later.
Declared in
IKScannerDeviceView.h.IKScannerDeviceViewTransferModeMemoryBasedThe scanned data is returned to the delegate as a
NSDataobject.Available in OS X v10.6 and later.
Declared in
IKScannerDeviceView.h.
Scanner View Display Modes
These constants specify the display mode the scanner view will use. They are used by the mode property.
enum {
IKScannerDeviceViewDisplayModeSimple,
IKScannerDeviceViewDisplayModeAdvanced
};
typedef NSInteger IKScannerDeviceViewDisplayMode;
Constants
© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-03-24)