Category "macos"

Open a FileDialog in SwiftUI on MacOs

In a SwiftUI app on MacOS I want to allow a users to select a file from the MacOS filesystem. I try to use AppKits NSOpenPanel . I tried like this, but I'm not

How to full (with all features - ACL support / Xattr support / xxhash library/ zstd library) install (compiling) rsync v3.2.3 on Mac?

I am trying to install rsync 3.2.3 on Mac by compiling it. But, I would like to install with all features. For that, it needs some libraries which in here (http

How to full (with all features - ACL support / Xattr support / xxhash library/ zstd library) install (compiling) rsync v3.2.3 on Mac?

I am trying to install rsync 3.2.3 on Mac by compiling it. But, I would like to install with all features. For that, it needs some libraries which in here (http

LSOpenURLsWithRole() failed with error -10810 for the file /Users/gb/myapp/dist/MyApplication.app

Environment: Python 3.8 Pyqt5 Mac OS X Catalina 10.15.6 I am trying to compile my python program in Mac OS application. I get this error message when I open the

Using .searchable on a macOS causes the focus to always jump back to the search field

I'm trying to move away from having a TextField in the toolbar by using the new .searchable. But there seems to be a problem I can't solve. When you type the te

How to access NSWindow from @main App using only SwiftUI?

At this answer the solution work for Scene plus swiftUI. However using @main like: @main struct MyApp: App { @StateObject private var model = MyModel()

Installing Angular on Mac OS 10.13

I'm trying to follow the quickstart on running Angular locally (on MacOS 10.13.6). With the first command, I already get some errors: npm install -g @angular/c

VSCode: how to automatically clear Python terminal output window before each run using VS Code tasks?

I'm on VS Code for Mac OS X. Is there a way that I can have VS Code automatically clear the terminal window that shows output from the Python program each time

How can I use the macOS system accent color in CSS?

When using Safari on macOS, form controls like buttons and selects use the system's accent color. When changing the accent color by going to System Preferences

How to find the location of a bash file?

I've made an executable .jar file for a terminal game I've been working on. So far, I opened it by typing java -jar name.jar in the Terminal. This worked, but w

How to call a php file with arguments from VBA for Mac? Equivalent of VBA.createObject("wscript.shell") on Mac?

Still in need of help :) I'm trying to adapt the following chunk of code to VBA for Mac (as the final implementation has to be on Mac): Dim ws as Object Dim res

gitlab pipeline build server for ios

We're running everything in AWS, including our self-hosted Gitlab server. Now I am trying to create a pipeline to build and publish our IOS apps. Gitlab cloud d

SSH Remote Host Identification Has Changed Error and Unable To Modify SSH Keys

I have a MacBook and by mistake I tried to setup password less ssh access for GitHub and definitely messed things up. I am new to Macs and I have no idea how to

Save a PDF from a WKWebView

This questions pertains to macOS, not iOS. Note that this question is being reported as a duplicate of this question. The answers on that page pertain either t

Why does the use of "Debug.Print" lead to "Overflow" error?

I create a function to sum all the cells within a range as following Function SumTest(rg As Range) As Double Debug.Print "SumTest..." Dim s As Double s

How to uninstall Anaconda completely from macOS

How can I completely uninstall Anaconda from MacOS Sierra and revert back to the original Python? I have tried using conda-clean -yes but that doesn't work. I a

FFMPEG hangs (sometimes) when trying to take a photo from USB camera?

I am attempting to write a script that takes a photo every 3 seconds from camera source "1", the -pix_fmt I think is unique to my USB camera. Here is the script

Can't install php7 or php 7.1 with homebrew

I was following a couple links that had this same sequence, namely this example. I was unable to get it done successfully. Here is the output from terminal Mac

"brew install python" installs 3.9. Why not 3.10?

My understanding is that "brew install python" installs the latest version of python. Why isn't it pulling 3.10? 3.10 is marked as a stable release. I can insta

How to force rebuild with .NET Core on the Mac

In Eclipse we "clean". In Ant we "clean". How do we clean or force a rebuild with DotNet Core command on the Mac? Trying to rebuild with the simple build comman