Posts

Post not yet marked as solved
1 Replies
227 Views
The recent upgrade of the Mac OS seems to have removed some of the inspector bar tools from the NSTextView that formerly appears after setting usesInspectorBar to true. I see nothing in the documentation for any API for making these tools reappear. I notice that the TextEdit app's inspector bar is not missing them. Please tell me how to get my app's text view's inspector bar to look and behave like TextEdit.
Posted Last updated
.
Post not yet marked as solved
5 Replies
1.2k Views
i have a usb device and am writing an OS X app which sends it commands. it shows up in the ioRegistry as a IOUSBMassStorageDriver. i want to send it some commands but can't find specific enough information about how to do this. the following code finds a plain vanilla usb driver which apparently is not able to actually deliver my commands to the device. any help is appreciated. a book, a tutorial, sample code, anything which is specific about IOUSBMassStorageDriver let matchingDict = { IOProviderClass : IOUSBDevice, idProduct : 58113, idVendor : 1238 } var matchedIterator:io_iterator_t = 0 var removalIterator:io_iterator_t = 0 let notifyPort:IONotificationPortRef = IONotificationPortCreate(kIOMasterPortDefault) IONotificationPortSetDispatchQueue(notifyPort, DispatchQueue(label: "IODetector")) let matchingCallback:IOServiceMatchingCallback = { (userData, iterator) in // Convert self to a void pointer, store that in the context, and convert it let this = Unmanaged<TLUSBDeviceMonitor>.fromOpaque(userData!).takeUnretainedValue() this.rawDeviceAdded(iterator: iterator) } let removalCallback: IOServiceMatchingCallback = { (userData, iterator) in let this = Unmanaged<TLUSBDeviceMonitor>.fromOpaque(userData!).takeUnretainedValue() this.rawDeviceRemoved(iterator: iterator) } let selfPtr = Unmanaged.passUnretained(self).toOpaque() IOServiceAddMatchingNotification(notifyPort, kIOFirstMatchNotification, matchingDict, matchingCallback, selfPtr, &matchedIterator) IOServiceAddMatchingNotification(notifyPort, kIOTerminatedNotification, matchingDict, removalCallback, selfPtr, &removalIterator)
Posted Last updated
.
Post not yet marked as solved
0 Replies
262 Views
in my developer account online, i created certificates and profiles and in Xcode, created an archive build, and submitted it successfully. in the 'my apps" portion of iTunes Connect, i see the build (it changed from "processing" to not). expecting to add beta testers, i looked for the Test Flight tab but it's not there. can anyone please explain to me what i should do or should have done differently? i've looked throughout the developer forums, and broadly throughout the internet and see no articles, posts or any relevant information.
Posted Last updated
.