| Inherits from | |
| Conforms to | |
| Framework | System/Library/Frameworks/Quartz.framework/ImageKit.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Declared in | IKPictureTaker.h |
The IKPictureTaker class represents a panel that allows users to choose images by browsing the file system. The picture taker panel provides an Open Recent menu, supports image cropping, and supports taking snapshots from an iSight or other digital camera.
+ pictureTaker
– beginPictureTakerSheetForWindow:withDelegate:didEndSelector:contextInfo:
– beginPictureTakerWithDelegate:didEndSelector:contextInfo:
– popUpRecentsMenuForView:withDelegate:didEndSelector:contextInfo:
– runModal
Returns a shared IKPictureTaker instance, creating it if necessary.
+ (IKPictureTaker *) pictureTaker;
An IKPictureTaker object.
IKPictureTaker.hOpens a picture taker as a sheet whose parent is the specified window.
- (void) beginPictureTakerSheetForWindow:(NSWindow *)aWindow withDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;
The parent window of the picture taker sheet.
The object that will invoke the selector didEndSelector when the picture taker session terminates.
The selector to invoke when the picture taker session terminates.
Any data that must be passed as an argument to the delegate through didEndSelector after the picture taker session terminates.
The didEndSelector method should have the following signature:
- (void)pictureTakerDidEnd:(IKPictureTaker *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
The returnCode value is set to NSOKButton if the user validates, or to NSCancelButton if the user cancels.
IKPictureTaker.hOpens a picture taker pane.
- (void) beginPictureTakerWithDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;
The object that will invoke the selector didEndSelector when the picture taker session terminates.
The selector to invoke when the picture taker session terminates.
Any data that must be passed as an argument to the delegate through didEndSelector after the picture taker session terminates.
The didEndSelector method should have the following signature:
- (void)pictureTakerDidEnd:(IKPictureTaker *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
The returnCode value is set to NSOKButton if the user validates, or to NSCancelButton if the user cancels.
IKPictureTaker.hReturns the input image associated with the picture taker.
- (NSImage*) inputImage;
The input image.
The input image is never modified by the picture taker.
IKPictureTaker.hReturns whether video mirroring is enabled during snapshots.
- (BOOL) mirroring;
Returns YES if video mirroring is enabled, NO otherwise.
IKPictureTaker.hReturns the edited image.
- (NSImage*) outputImage;
The edited image.
IKPictureTaker.hDisplays the Open Recent popup menu associated with the picture taker.
- (void) popUpRecentsMenuForView:(NSView *) aView withDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;
The object that will invoke the selector didEndSelector when the picture taker session terminates.
The selector to invoke when the picture taker session terminates.
Any data that must be passed as an argument to the delegate through didEndSelector after the picture taker session terminates.
The didEndSelector method should have the following signature:
- (void)pictureTakerDidEnd:(IKPictureTaker *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
The returnCode value is set to NSOKButton if the user validates, or to NSCancelButton if the user cancels.
IKPictureTaker.hOpens a modal picture taker dialog.
- (NSInteger) runModal;
Returns NSOKButton if the user edits or chooses an image; NSCancelButton if the user cancels or does not change the default image.
IKPictureTaker.hSet the image input for the picture taker.
- (void) setInputImage:(NSImage *) image;
An NSImage object.
The input image is never modified by the picture taker.
IKPictureTaker.hControls whether the receiver enables video mirroring during snapshots.
- (void) setMirroring:(BOOL)b;
The default setting is YES.
IKPictureTaker.hKeys for customizing the picture taker appearance and behavior.
NSString *const IKPictureTakerAllowsVideoCaptureKey; NSString *const IKPictureTakerAllowsFileChoosingKey; NSString *const IKPictureTakerShowRecentPictureKey; NSString *const IKPictureTakerUpdateRecentPictureKey; NSString *const IKPictureTakerAllowsEditingKey; NSString *const IKPictureTakerShowEffectsKey; NSString *const IKPictureTakerInformationalTextKey; NSString *const IKPictureTakerImageTransformsKey; NSString *const IKPictureTakerOutputImageMaxSizeKey; NSString *const IKPictureTakerCropAreaSizeKey; NSString *const IKPictureTakerShowAddressBookPictureKey; NSString *const IKPictureTakerShowEmptyPictureKey;
IKPictureTakerAllowsVideoCaptureKeyA key for allowing video capture. The associated value is an NSNumber value (BOOL) whose default value is YES.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerAllowsFileChoosingKeyA key for allowing the user to choose a file. The associated value is an NSNumber object that contains a BOOL value whose default value is YES.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerUpdateRecentPictureKeyA key for allowing a recent picture to be updated. The associated value is an NSNumber object that contains a BOOL value whose default value is YES.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerAllowsEditingKeyA key for allowing image editing. The associated value is an NSNumber object that contains a BOOL value whose default value is YES.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerShowEffectsKeyA key for showing effects. The associated value is an NSNumber object that contains a BOOL value whose default value is NO.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerInformationalTextKeyA key for informational text. The associated value is an NSString or NSAttributedString object whose default value is "Drag Image Here".
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerImageTransformsKeyA n image transformation key. The associated value is an NSDictionary object that can be serialized.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerOutputImageMaxSizeKeyA key for the maximum size of the output image. The associated value is an NSValue object (NSSize).
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerCropAreaSizeKeyA key for the cropping area size. The associated value is an NSValue object (NSSize).
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerShowAddressBookPictureKeyA key for showing the address book picture. The associated value is a Boolean value packages as an NSNumber object. The default value is NO. If set to YES, the picture taker automatically adds the address book image for the Me user at the end of the Recent Pictures pop-up menu.
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
IKPictureTakerShowEmptyPictureKeyA key for showing an empty picture. The associated value is an NSImage object. The default value is nil. If set to an image, the picture taker automatically shows an image at the end of the Recent Pictures pop-up menu. that means "no picture."
Available in Mac OS X v10.5 and later.
Declared in IKPictureTaker.h.
You can set picture taker options using setValue:forKey (NSKeyValueCoding).
IKPictureTaker.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-10-31)