Frameworks/AIUtilities Framework/Source/AIImageViewWithImagePicker.m
branchadium-1.5.10.5
changeset 5997 d88e6711d0e0
parent 5766 7a7aed005b2b
equal deleted inserted replaced
5996:1894c44cfd13 5997:d88e6711d0e0
   117 {
   117 {
   118 	[activeRecentPicture release];
   118 	[activeRecentPicture release];
   119 
   119 
   120 	if (pictureTaker) {
   120 	if (pictureTaker) {
   121 		[pictureTaker close];
   121 		[pictureTaker close];
   122 		[pictureTaker release], pictureTaker = nil;
   122         [pictureTaker release]; pictureTaker = nil;
   123 	}
   123 	}
   124 	
   124 	
   125 	delegate = nil;
   125 	delegate = nil;
   126 	[title release];
   126 	[title release];
   127 	
   127 	
   142 	// Inform the picker controller of a changed selection if it is open, for live updating
   142 	// Inform the picker controller of a changed selection if it is open, for live updating
   143 	if (pictureTaker) {
   143 	if (pictureTaker) {
   144 		[pictureTaker setInputImage:inImage];
   144 		[pictureTaker setInputImage:inImage];
   145 	}
   145 	}
   146 	
   146 	
   147 	[activeRecentPicture release], activeRecentPicture = nil;
   147     [activeRecentPicture release]; activeRecentPicture = nil;
   148 }
   148 }
   149 
   149 
   150 /*!
   150 /*!
   151  * @brief Set the title of the Image Picker
   151  * @brief Set the title of the Image Picker
   152  *
   152  *
   513 - (IBAction)showImagePicker:(id)sender
   513 - (IBAction)showImagePicker:(id)sender
   514 {
   514 {
   515 	[self showPictureTaker];
   515 	[self showPictureTaker];
   516 }
   516 }
   517 
   517 
   518 - (void)pictureTakerDidEnd:(id)inPictureTaker returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
   518 - (void)pictureTakerDidEnd:(IKPictureTaker *)inPictureTaker returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
   519 {	
   519 {
   520 	if (returnCode == NSOKButton) {
   520 	if (returnCode == NSOKButton) {
   521 		NSImage *image = [inPictureTaker outputImage];
   521 		NSImage *image = [inPictureTaker outputImage];
   522 		
   522 		
   523 		//Update the NSImageView
   523 		//Update the NSImageView
   524 		NSSize imageSize = [image size];
   524 		NSSize imageSize = [image size];