The most interesting keys are IKPictureTakerAllowsFileChoosingKey, IKPictureTakerShowRecentPictureKey, IKPictureTakerOutputImageMaxSizeKey
, IKPictureTakerCropAreaSizeKey
, and IKPictureTakerShowEffectsKey
. We can use these keys to disable file selection, eliminate the recent pictures pop-up menu, allow us to take larger images, and to apply effects to those images.
In the
BTSWindowController+Importer.h
file, add the following defines that we will use to set the maximum size of the picture that we can take:#define D_MAX_WIDTH 640 #define D_MAX_HEIGHT 480
In the
BTSWindowController+Importer.m
file, in thetakePicture:
method, add the following program code to modify the behavior of the Picture Taker:// Set the maximum size NSSize l_size = NSMakeSize(D_MAX_WIDTH, D_MAX_HEIGHT); // Disable the file chooser [l_pictureTaker setValue:[NSNumber numberWithBool:NO] forKey:IKPictureTakerAllowsFileChoosingKey]; // Disable...