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!(" 📸 add_method didCloseSessionWithError");
decl.add_method(
sel!(device:didCloseSessionWithError:),
device_did_close_session_with_error as extern "C" fn(&Object, Sel, id, id),
);
println!(" 📸 add_method didRemoveDevice");
decl.add_method(
sel!(didRemoveDevice:),
device_did_remove_device as extern "C" fn(&Object, Sel, id),
);
println!(" 📸 add_method withCompleteContentCatalog");
decl.add_method(
sel!(withCompleteContentCatalog:),
device_did_become_ready as extern "C" fn(&Object, Sel, id),
);
Do I need to be using the fancier cameraDevice.requestOpenSession() with the callback function from here?
https://developer.apple.com/documentation/imagecapturecore/icdevice/3142916-requestopensession
As seen on StackOverflow:
https://stackoverflow.com/questions/68978185/apple-ptp-withcompletecontentcatalog-not-firing-rust-obj-c
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I found the method once before in the Apple Developer docs so I know it exists.
Searching for it now online bears no fruit.
Super grateful for any leads on this.
Every thing I'm reading about receipt validation is only for in-app purchases, but how does the Apple Store then prevent someone from putting the app on a torrent network?
If you search "receipt" in WWDC2020 here:
https://developer.apple.com/videos/wwdc2020
it's all "in-app" receipt validation.
SwiftyStoreKit docs says this:
When an app is first installed, the app receipt is missing.
As soon as a user completes a purchase or restores purchases, StoreKit creates and stores the receipt locally as a file, located by Bundle.main.appStoreReceiptURL. https://github.com/bizz84/SwiftyStoreKit#receipt-verification
Which makes it sound like the MacOS app can't actually be receipt validated when it's freshly installed from the Apple Store... 🤷🏻♂️
So then back to the top, how's it protected from the ".app" file becoming torrented?
Hi Apple Developers, I have my question posted already on Stack Overflow, I hope it's okay to just link to my question here:https://stackoverflow.com/questions/62208878/macos-process-not-writing-filesIf not I'll copy the question content here. Thank you 🙇-1F3FB;♂