how send ptp command to camera

I'm using ImageCaptureCore to control a camera,and I have found the sample project

PTPPassThrouth.

And then I find in ICDevice.h there's a function

- (void)requestSendMessage:(unsigned int)messageCode outData:(NSData*)data maxReturnedDataSize:(unsigned int)maxReturnedDataSize sendMessageDelegate:(id)sendMessageDelegate didSendMessageSelector:(SEL)selector contextInfo:(void*)contextInfo;

It says This method is the functional equivalent of calling ICAObjectSendMessage() found in ImageCapture.framework, which has been deprecated in Mac OS X 10.6.

I think this is what I want. But I can't find any document or sample about how to use it.

Can anyone give me any help???

I also want to find some information about PTPPassThrough.

Here is a sample for calling the interfaces about PTP, but the code is for old OS versions.

https://developer.apple.com/legacy/library/samplecode/PTPPassThrough/Introduction/Intro.html


If you have further study resources of it, please share it in this issue, thank you.

how send ptp command to camera
 
 
Q