Posts

Post not yet marked as solved
0 Replies
856 Views
We are developing an app that uses external hardware to measure analogue hearing-loop performance . It uses audio jack on phone/iPad. With the new hardware on iPad using USB-C , we have noticed that the same input , one with lighting adapter and one with usb-C adapter - both produce way different input levels. The USB-C is ~23dB lower, with the same code and settings. That's almost 10x difference. Is there any way to control the USB-C adapter? am I missing something ? The code simply uses AVAudioInputNode and block attached to it via self.inputNode.installTap we do adjust gain to 1.0 let gain: Float = 1.0 try session.setInputGain(gain) But that still does not help. I wish there was an apple lab I could go to , to speak to engineers about it.
Posted
by greggj.
Last updated
.
Post marked as solved
3 Replies
1.6k Views
Any advice how to migrate an app using kext to using IO from the app level. We have a USB device, which uses proprietary protocol to communicate. It looks like I can't ship .app with kext bundled in, so I have started looking into migrating our current driver to use user space APIs. Any pointers on how to handle migration from kext using IOSCSIProtocolInterface to user space IOUSBInterfaceInterface
Posted
by greggj.
Last updated
.
Post not yet marked as solved
0 Replies
548 Views
Hi y'all, I do wonder. Why doesn't the fetchRequest method on NSMangedObject return NSFetchRequest but instead is declared as this: func fetchRequest() ->NSFetchRequest Seems a bit odd and make writing things in Swift 5.5 that use CoreData a bit more tricky with a lot of nasty casts. What would you guys suggest? I'm trying to write a function that gets fetchRequest that is correct for the ManagedObject that I got. Make some changes to that fetch request. And pass it to generic function that takes NSFetchRequest and returns me bunch of Foos -> [Foo] , etc.
Posted
by greggj.
Last updated
.
Post not yet marked as solved
1 Replies
795 Views
Hi, In implementing MDQuery which tracks file changes - I have noticed that when receiving the "kMDQueryUpdateRemovedItems" notification - the item path is null. In order to track the file creation/update/removal life cycle - I need some common "thread". It seems like internally MDItem has a unique identifier field called "oid" - however it is not exposed through public API. It seems like relying on the pointer is a bit of a "medieval" solution, so the question is - how do I get access to the "oid" please? Thanks.
Posted
by greggj.
Last updated
.
Post not yet marked as solved
1 Replies
617 Views
Hi Everyone,I have an app that is usign file-promise API (successfully) to implement D&D between my app and the Finder.However, now that this works - I can't get the internal D&D to work, between the document windows in the app.I got a proof-of-concept/template project - to test this. I was hoping that this could be of some help to anyone who wants to implement this feature in their apps. The documentation in this area is not good.I woudl appriciate any help and pointers, please. Thanks.URL to the project on github: https://github.com/greggjaskiewicz/macOS-drag-and-drop-POC
Posted
by greggj.
Last updated
.