Home > Software design >  Apple PTP - withCompleteContentCatalog not firing (Rust Obj-C)
Apple PTP - withCompleteContentCatalog not firing (Rust Obj-C)

Time:09-16

From the imagecapturecore-rs crate here: https://github.com/brandonhamilton/image-capture-core-rs/issues/7

Only didOpenSessionWithError fires when connecting a PTP (picture transfer protocol) device with a None for the error value and an NSArray with a count of 0.

            decl.add_method(
                sel!(device:didOpenSessionWithError:),
                device_did_open_session_with_error as extern "C" fn(&Object, Sel, id, id),
            );
            println!("             
  • Related