macos

Cannot open a newtab in selenium webdriver on Mac OS X

て烟熏妆下的殇ゞ 提交于 2021-02-08 03:40:26
问题 I should be able to open a new tab in selenium for python using the code from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Firefox() driver.get("http://stackoverflow.com/") body = driver.find_element_by_tag_name("body") body.send_keys(Keys.COMMAND + 't') But no new tab opens, and no error message appears (http://stackoverflow.com/ does load). Note that I am using Keys.COMMAND + 't' because I am running the code on OS X. I have no idea what is

Remove/Change list highlight-color (or adjust space between items)

佐手、 提交于 2021-02-08 03:26:11
问题 I am currently making a custom row template for a SwiftUI-list for a MacOS -application. Since i didn't find a way remove/adjust the blue highlight-color (I only found solutions for iOS), I made the the following template which covers the blue-part but "mimics" it within the desired area, which looks like this: Screenshot. I managed to cover most of the highlight-color by using negative paddings, etc.; however, I just can't get rid of some blue pixels on the top of the item (marked in

use qtcreator with gnu g++4.8 in mac os x

瘦欲@ 提交于 2021-02-08 03:07:32
问题 I would like to set g++4.8 as the c++ compiler with qt creator. I am in a OSX 10.8, QtCreator 2.8.0, and I have installed g++4.8 via homebrew. I have setted the g++4.8 as the compiler: if I go in Projects > Manage Kits I have the GCC kit as default, and manually inserted a compiler called GCC 4.8, with compiler path /usr/local/Cellar/gcc48/4.8.1/bin/g++-4.8 . You can see it in the screenshots below. I also have /usr/local/Cellar/gcc48/4.8.1/bin in the Build Enviroment > PATH. But, if I add

MacOS Notarize - Gatekeeper does not recognize notarized app

穿精又带淫゛_ 提交于 2021-02-08 02:18:00
问题 I have a MacOS app and want to distribute to beta users as DMG file outside AppStore. I have read some articles about how to notarize an app and follow the steps to successfully notarize the DMG file without any problem. My development machine runs on MacOS 10.14, and XCode version is 10.1. However when I try to check the notarized DMG file on another testing machine which runs on MacOS 10.14.5 (by sending the file via AirDrop, or download from my website), I still see the popup from

MacOS Notarize - Gatekeeper does not recognize notarized app

不打扰是莪最后的温柔 提交于 2021-02-08 02:12:55
问题 I have a MacOS app and want to distribute to beta users as DMG file outside AppStore. I have read some articles about how to notarize an app and follow the steps to successfully notarize the DMG file without any problem. My development machine runs on MacOS 10.14, and XCode version is 10.1. However when I try to check the notarized DMG file on another testing machine which runs on MacOS 10.14.5 (by sending the file via AirDrop, or download from my website), I still see the popup from

OS X Python: can I explicitly set MACOSX_DEPLOYMENT_TARGET for extensions?

折月煮酒 提交于 2021-02-08 02:02:22
问题 I use the python.org framework build of Python under recent versions of OS X (i.e., 10.11 El Capitan). I need to build some extensions that rely on recent versions of compilers (e.g., C++-11 features). However the python.org python is built to work on older systems as well, for backward compatibility. Hence, it has the environment variable MACOSX_DEPLOYMENT_TARGET=10.6 . This means that extensions are built by default with a toolchain that, I think, mimics gcc-4.2 , in particular in terms of

Location of Add/Delete Buttons for an NSTableView in OS X

杀马特。学长 韩版系。学妹 提交于 2021-02-08 01:59:36
问题 I think I must be missing something simple but being new to Xcode... Specifically I am coding in Swift but I believe this is more of a .xib file question. It is easy to have add and delete buttons outside of an NSTableView (like the native Mail app's Preferences->Signatures panel) but how do you integrate these into what seems to be the NSTableView itself? (more like the native Mail app's Preferences->Accounts panel) Ideally I want the option to have more than just add / delete buttons

Qemu not responding after upgrading to macOS Catalina

核能气质少年 提交于 2021-02-07 21:05:16
问题 After upgrading my Mac to Catalina, I can't use qemu anymore. Whenever I try to start it, it just hangs. The menu bar also doesn't respond while the qemu window is active. Running qemu-system-i386 --help does work though. Qemu version: 4.1.0 Edit: Passing -nographic fixes the issue. 回答1: This is the result of a change in behaviour in Catalina which breaks an assumption in the design of the QEMU Cocoa front-end. We've put in a change to the QEMU code (upstream git commit dff742ad27efa474)

Qemu not responding after upgrading to macOS Catalina

◇◆丶佛笑我妖孽 提交于 2021-02-07 20:59:43
问题 After upgrading my Mac to Catalina, I can't use qemu anymore. Whenever I try to start it, it just hangs. The menu bar also doesn't respond while the qemu window is active. Running qemu-system-i386 --help does work though. Qemu version: 4.1.0 Edit: Passing -nographic fixes the issue. 回答1: This is the result of a change in behaviour in Catalina which breaks an assumption in the design of the QEMU Cocoa front-end. We've put in a change to the QEMU code (upstream git commit dff742ad27efa474)

How to capture USB traffic with Wireshark in OSX Catalina (10.15)

僤鯓⒐⒋嵵緔 提交于 2021-02-07 20:59:29
问题 I am trying to get Wireshark USB captures working. Apparently the trick prior to Catalina was to just bring the interface up so that Wireshark could see it. https://forums.developer.apple.com/thread/95380 However, this does not work in Catalina because the USB hubs are not shown as interfaces any longer. Is there another known way to "bring up" these interfaces in OSX? Perhaps a new system policy setting? How would one go about finding such a thing? It might just be broken now. I imagine