macos-sierra

Swift/AppleScript: Cannot run apple script from Swift code

孤人 提交于 2019-12-01 09:19:40
问题 I try to run AppleScript command from Swift code like this: var appleScriptCmd = "tell application \"System Events\" to make login item at end with properties {path:\"" + appPath + "\", hidden:false, name:\"Some App\"}"; var appleScriptCmd2 = "tell application \"System Events\" to set visible of process \"Safari\" to false"; and then I have tried both: let script = NSAppleScript(source: appleScriptCmd2)!; var errorDict : NSDictionary? script.executeAndReturnError(&errorDict) if errorDict !=

Add pdf annotation with PDF Kit in OS 10.12

半腔热情 提交于 2019-12-01 08:42:20
问题 Now the latest os10.12 operating system, PDF annotation can be displayed, but now I still have a problem, I recorded coordinate information in PDFView ->mouseDragged before, and then automatically will invoke the PDFView->drawPage function, this function I will draw the NSBezierPath curve to determine the dynamic annotation bounds. but now in the process of mouseDragged has not been call the drawPage:toContext function. So I can't see the dynamic curve of adding annotation. I use the refresh

captureOutput not being called

岁酱吖の 提交于 2019-12-01 04:22:25
I have been looking into this for way too long now. I am trying to get MacOS webcam data and run CIDetect on the frames that the webcam outputs. I know I need to: connect AVCaptureDevice (as in input to) into AVCaptureSession connect AVCaptureVideoDataOutput (as an output to) into AVCaptureSession call .setSampleBufferDelegate(AVCaptureVideoDataOutputSampleBufferDelegate, DelegateQueue) For some reason, after calling .setSampleBufferDelegate(...) (and of course after calling .startRunning() on the AVCaptureSession instance), my AVCaptureVideoDataOutputSampleBufferDelegate 's captureOutput is

captureOutput not being called

你。 提交于 2019-12-01 01:47:14
问题 I have been looking into this for way too long now. I am trying to get MacOS webcam data and run CIDetect on the frames that the webcam outputs. I know I need to: connect AVCaptureDevice (as in input to) into AVCaptureSession connect AVCaptureVideoDataOutput (as an output to) into AVCaptureSession call .setSampleBufferDelegate(AVCaptureVideoDataOutputSampleBufferDelegate, DelegateQueue) For some reason, after calling .setSampleBufferDelegate(...) (and of course after calling .startRunning()

rJava on MacOS Sierra 10.12.15: unsupported option fopenmp

别说谁变了你拦得住时间么 提交于 2019-11-30 19:27:20
I'm trying to install rJava on MacOS Sierra. Have to tried the tips and guides elsewhere for other other version MacOS such as https://github.com/snowflakedb/dplyr-snowflakedb/wiki/Configuring-R-rJava-RJDBC-on-Mac-OS-X and Install xlsx and rJava on Mac but it does not work out. Much appreciate any help. Thanks. My Mac version: macOS Sierra, version 10.12.15 My R version: 3.4.0 (2017-04-21) My Rstudio version: Version 0.99.903 Java version: bash-3.2$ /usr/libexec/java_home -V bash-3.2$ java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM)

Command Line Tools bash (git) not working - macOS Sierra final release candidate

烂漫一生 提交于 2019-11-30 16:46:17
I have just upgraded from OS X 10.11 "El Capitan" to 10.12: "Sierra" , and when I try to access git commands inside a terminal, I get the following error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Please help me if anyone have solution. Re-install Xcode developer tools xcode-select --install Richard Wheatley I fixed this issue by downloading and installing the 'Command Line Tools (macOS sierra) for Xcode 8' package from Apple Developer Downloads . Be sure to select Command Line Tools

Is there programable access to the Control Strip of the macOS Touch Bar?

落花浮王杯 提交于 2019-11-30 12:00:21
The Control Strip is the static and global part of the macOS Touch Bar which is always visible in every context and app. While Apple provides full documentation about how to use the API to provide a contextual App Region in your macOS app, I couldn't find any notice about how to add stuff to the Control Strip . I could think of a lot of nice tools and actions which would be nice to have it always just a finger tip away, so I was wondering if we (the developers) are able to advance the Control Strip too? Is there any documentation or did anybody figure it out himself how to work wit Control

Where are ini files on MacOsX Sierra?

五迷三道 提交于 2019-11-30 11:01:47
I've just bought new MacBook Pro. Take a look on what php -i | grep ini returns: prompt> php -i | grep ini Configuration File (php.ini) Path => /etc Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) user_ini.cache_ttl => 300 => 300 user_ini.filename => .user.ini => .user.ini Supported handlers => ndbm cdb cdb_make inifile flatfile init_command_executed_count => 0 init_command_failed_count => 0 com_init_db => 0 Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator,

Why can't I install Sass on Mac OS Sierra?

荒凉一梦 提交于 2019-11-30 10:12:42
I have tried installing Sass three times on Mac OS Sierra(10.12) from the terminal typing the following code: sudo gem install sass Then it asks for my password, I enter it and nothing happens (I even waited half an hour) it does not even gives any error or any other message, then when I try to close the terminal window a message appears saying that the processing will terminate if I close the window. I already checked on if ruby is installed on my Mac and this is the version I have: ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] What should I do? NOTE: I'm a newbie and

Can I upload Xcode builds on macOS 10.12

一笑奈何 提交于 2019-11-30 06:51:55
Will I be capable of submitting an app with Xcode 7.3.1 while on the macOS 10.12 beta? According to this post , it is possible to run Xcode 7 alongside macOS 10.12. Fan Zhang Yes, you can! But if you're tying to do this, you will find two problems. no .app file provided in bundle Build with Xcode 7.3.1 then upload using Xcode 8 [Beta]. This will allow you to upload the archive. When trying to submit to the store you will be faced with this error message: New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, OS X, and tvOS SDK. Don't submit apps built with