Posts

Post marked as solved
1 Replies
630 Views
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
Posted
by mikeumus.
Last updated
.
Post marked as solved
2 Replies
973 Views
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?
Posted
by mikeumus.
Last updated
.
Post not yet marked as solved
4 Replies
1.9k Views
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;♂
Posted
by mikeumus.
Last updated
.