IKCameraDeviceView ignores 'memory' mode.
IKCameraDeviceView ignores 'memory' mode.
- Subject: IKCameraDeviceView ignores 'memory' mode.
- From: Eric Slosser <email@hidden>
- Date: Wed, 24 Apr 2013 08:48:31 -0400
I'd like my IKCameraDeviceView to report downloaded images in memory-mode, but despite the fact that I have told it to use IKCameraDeviceViewTransferModeMemoryBased and it agrees that it heard me:
(gdb)p (int) [cameraDeviceView mode]
$1 = 1
... it still passes the image as a URL to its delegate's cameraDeviceView:didDownloadFile:location:fileData:error: method, after downloading it to ~/Pictures. That's bad, because the user may have that folder open, and I don't want her to see a tmp file flash in and out of existence.
Because I'm asking for memory mode, I deliberately don't display the file UI (aka 'Displays download location' in Interface Builder).
I tried to workaround it by doing the following, but it ignores that too.
cameraView.downloadsDirectory = [NSURL fileURLWithPath:NSTemporaryDirectory()];
Anyone have pearl she'd like to cast?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden