macos-sierra

Disable bounce scrolling for WKWebview in macOS

百般思念 提交于 2019-12-10 18:28:48
问题 Trying to disable bounce scrolling for WKWebview in macOS, but WKWebview in macOS has no "scrollView" let webView = WKWebView(frame: view.frame) print(webView.scrollView) 回答1: One really weird thing about this that you may or may not have noticed is that in the WKWebView class, there is a description of the scrollView that is theoretically "supposed" to be in the class, but the scrollView is not there. This can be seen in the photo below: I would say that it could be a weird procedure of

Setting up an apache web server on mac os Sierra (macbook pro 13 2014)

≯℡__Kan透↙ 提交于 2019-12-10 18:08:42
问题 http://digitalshore.io/local-web-development-environment-apache-macos-sierra-10-12 This is the guide that i used to set up an apache server. I did everything that was necessary but i wasn't able to run this command $ sudo cp httpd-userdir.conf httpd-userdir.conf.bak Answer from terminal was "Access denied" So, I decided not to make back-up files. When i completed the proccess, i entered this in the browser http://localhost/~username , where username was my actual username. And got this

nothing happens after .url() calling

跟風遠走 提交于 2019-12-10 15:19:23
问题 I have the following nightwatch test: module.exports = { 'Set Initial Dataset' : function (browser) { browser .url('http://localhost/nightwatch/load-initial-dataset') .end() } } When I execute it the browser is opened and the url is loaded, but when the loading is ended it doesn't close the browser to begin the next test. The test worked 1 month ago... I updated nightwatch to the nigthwatch latest version (v0.9.8), downloaded selenium-server-standalone-3.0.1.jar , chromedriver 2.25 and Chrome

Swift app using DispatchQueue.concurrentPerform(iterations:) no longer runs concurrently under Mac OS Sierra

时光总嘲笑我的痴心妄想 提交于 2019-12-10 14:23:52
问题 In testing my code under Sierra, I found that the methods that previously handled concurrent queues were no longer working. In analyzing the error in my C++ codebase, one of the users suggested a workaround that involved explicitly naming a target for the queue declaration (see this post: C++11 app that uses dispatch_apply not working under Mac OS Sierra ) that seems to have solved the problem. In Swift 3, the following code would be used to execute a closure concurrently, but it is

Unable to install PHP 7 with Homebrew on macOS Sierra

情到浓时终转凉″ 提交于 2019-12-10 13:22:18
问题 I'm trying to setup Laravel's Valet which, as a dependency, requires PHP 7. When I try to install PHP 7 with Homebrew I get the following error: Configuring SAPI modules checking for Apache 2.0 handler-module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/sbin

After set-key-partition-list codesign still prompts for key access

半腔热情 提交于 2019-12-09 12:58:19
问题 I'm importing a PEM file containing public and private keys for my code signing identity with the following command: security import "${PEM_FILE}" -k ~/Library/Keychains/login.keychain -T /usr/bin/codesign -T /usr/bin/security On OS X 10.11 El Capitan I could then codesign without a prompt: codesign --force --sign "${IDENTITY_HASH}" --timestamp=none `mktemp` However, as others have mentioned, OS X 10.12 Sierra now requires that you set-key-partition-list after import : security set-key

how to install RODBC on macOS Sierra 10.12.4

僤鯓⒐⒋嵵緔 提交于 2019-12-08 18:32:28
In R 3.4.0, install.packages('RODBC', type='source') fails on macOS 10.12.4. I also downloaded RODBC_1.3-15.tar.gz from CRAN and tried, R CMD INSTALL RODBC_1.3-15.tar.gz In both cases, I got "ODBC headers sql.h and sqlext.h not found". A discussion of this in Installation of RODBC/ROracle packages on OS X Mavericks says the following: To fix this, you need to download the latest version of iODBC (www.iodbc.org), and then unzip the file and set your header and library search paths to the location where you put the unzipped package. If you don't know how to set your search paths, you could just

Can I install Xcode 8.3 on ElCapitan

ぃ、小莉子 提交于 2019-12-08 15:41:10
问题 Can I install xcode 8.3 without updating my Mac's OS i.e. "OS X El Capitan" (Version 10.11.6) I was not able to find any reference on Apple's site, However, this link says I can't. Right now, I've Xcode 8.2.1 installed. 回答1: No, the latest version of Xcode (Version 8.3) requires macOS Sierra 10.12. I found this information on the App Store page under the compatibility section on the left side. 回答2: Well, there's a challenging way to modify and run it. :) Not as your primary Xcode instance,

How to add a scrollview in Touch Bar in Storyboard?

为君一笑 提交于 2019-12-08 14:49:05
问题 I am adding a few buttons to the Touch Bar in storyboard, everything works fine except that I can only fit about 4 buttons in there (since the buttons contain both image and text) in my education app. I would like to add a scrollview to contains all the buttons, but does not seem to be able to drag a ScrollView into the Touch Bar. What is the best way to have a scrollable set of buttons in Touch Bar? 回答1: You firstly need to insert Touch Bar View which can then contian NSScrollView . It

applescript can't delete any mailbox

杀马特。学长 韩版系。学妹 提交于 2019-12-08 12:26:45
问题 how to delete a mailbox? tell application "Mail" delete mailbox "complaints" of account "ACME LLC" end tell gives me error "AppleEvent handler failed." number -10000" MacOs Sierra 10.12 It is not a problem of file permission because renaming mailboxes works fine 来源: https://stackoverflow.com/questions/39938557/applescript-cant-delete-any-mailbox