Questions tagged [macos]

macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers. Use this tag only if your question relates to using macOS APIs or macOS-specific behavior, not because you happen to run your code on macOS. Questions relating to using or troubleshooting macOS are off-topic and belong in the Ask Different community instead.

macOS (formerly known as OS X until 2016 and Mac OS X until 2012) is the desktop operating system from Apple Inc., found on Macintosh computers.

Use this tag for questions about writing and debugging programs on macOS. Questions relating to using or troubleshooting macOS are off-topic (use apple.stackexchange.com instead).

macOS() consists of a Mach/BSD-based kernel, operating system interfaces primarily based on FreeBSD (), and additional frameworks (written in C (), C++ (), Objective-C () and Swift () providing user interface and application-level services.

It was the successor to Mac OS 9. macOS is based upon the NeXTSTEP and OpenStep operating systems developed in the 1980s and 1990s by NeXT Inc., which Apple purchased in 1996.

Versions

  • Current macOS Big Sur
  • macOS Catalina 10.15.1
  • macOS Mojave 10.14.1
  • macOS High Sierra (10.13)
  • macOS Sierra (10.12)
  • OS X El Capitan (10.11)
  • OS X Yosemite (10.10)
  • OS X Mavericks (10.9)
  • OS X Mountain Lion (10.8)
  • OS X Lion (10.7)
  • OS X Snow Leopard (10.6)
  • OS X Leopard (10.5)
  • OS X Tiger (10.4)
  • OS X Panther (10.3)
  • OS X Jaguar (10.2)
  • OS X Cheetah (10.1)
  • OS X Puma (10.0)

More information:

116456 questions
42
votes
0 answers

Xcode 7.3 taking too much space

I have seen that after every Xcode update, the free space of my 128 GB SSD drive has decreased, without my knowing why this is happening. I have read some articles on how to free disk space simply by deleting some unnecessary Xcode files, but they…
user4623477
42
votes
5 answers

Cannot load R xlsx package on Mac OS 10.11

I can load the rJava and xlsxjars packages, but I get a "Failed to load JVM" when I execute library(xlsx). Below are my details. OS Version: $ sw_vers ProductName: Mac OS X ProductVersion: 10.11 BuildVersion: 15A284 Java Version: $ java…
Matt Hagen
  • 651
  • 1
  • 6
  • 7
42
votes
4 answers

Set Visual Studio Code to be global Git editor on OSX

I want to set VS Code to be my default git editor for commands such as rebase. This doesn't seem to be documented on the VS Code website. I've found a SO question about doing it for Windows, which sounds like it has mixed success: How to use Visual…
Simon B
  • 976
  • 1
  • 11
  • 20
42
votes
5 answers

Swift - Capture keydown from NSViewController

I would like to capture keyevents in my little app. What I have done: class ViewController : NSViewController { ... override func keyDown(theEvent: NSEvent) { if theEvent.keyCode == 124 { println("abc") } else { …
Cripto
  • 3,581
  • 7
  • 41
  • 65
42
votes
4 answers

How can I disable Bash sessions in OS X El Capitan

A seemingly new feature in OS X El Capitan (10.11 Beta) is Bash sessions (Terminal sessions). I now have a ~/.bash_sessions directory with history files, and my HISTFILE and HISTIGNORE envars are being overridden. How can I disable all of this…
Whymarrh
  • 13,139
  • 14
  • 57
  • 108
42
votes
3 answers

What's the difference between formal and informal protocols in Objective-C?

What's the difference between formal and informal protocols in Objective-C?
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
42
votes
2 answers

How to disable the grey background colour on iterm2 desactived tab split?

In iterm2, by default setting, only the current using tab split will have the normal black background colour, meanwhile all the other tab splits will be covered by a fog-like grey background colour. I know this may be designed to improving…
Zen
  • 4,381
  • 5
  • 29
  • 56
42
votes
2 answers

Disable default alert sound for Firefox web notifications

I'm using the Web Notification API to show desktop notifications from my web app under OSX. In Firefox only, when a notification is triggered, it also plays a sound (in Safari and Chrome, using the exact same code, only the notification displays and…
daGUY
  • 27,055
  • 29
  • 75
  • 119
42
votes
6 answers

How to obtain MAC address of WiFi network interface?

It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method http://developer.android.com/reference/java/net/NetworkInterface.html I've found several forums of people trying to do this with no…
Gubatron
  • 6,222
  • 5
  • 35
  • 37
42
votes
7 answers

On mac, g++ (clang) fails to search /usr/local/include and /usr/local/lib by default

I'm on a mac and I used homebrew to install gmp. Kyumins-iMac:gcjlib math4tots$ g++ main.cpp -lgmp -lgmpxx In file included from main.cpp:2: ./gcjlib.hpp:4:10: fatal error: 'gmpxx.h' file not found #include ^ 1 error…
math4tots
  • 8,540
  • 14
  • 58
  • 95
42
votes
4 answers

Git diff: Write output and exit instead of interactive mode

When I run git diff on my OSX command line, the output is displayed inside a less or vim interface. The interface lets me to scroll up and down, and quit using the q key. This is very annoying, especially when there is no diff and git opens a blank…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
42
votes
3 answers

MAMP time between seeing live changes

I'm using MAMP server and wondering why changes I make to the PHP files are not instantaneously displayed when I page refresh (in browser). Is there a way to set this up? There are no caching settings on MAMP. Either I have to wait 20 seconds or…
zebapy
  • 643
  • 1
  • 5
  • 21
42
votes
7 answers

libmysqlclient15-dev on macs?

Does OSX need an install of libmysqlclient15-dev? I'm trying to compile a gem that is failing and a lot of sources says to install "libmysqlclient15-dev" but I only see this for Linux, not OSX. Am I missing something here?
maccy1
  • 523
  • 2
  • 5
  • 6
42
votes
9 answers

Enable access for assistive devices programmatically on 10.9

I want to enable access for assistive devices programatically on 10.9. On 10.8 and lower I was using following Applescript to enable access for assistive devices: tell application "System Events" if UI elements enabled is false then set UI…
Vinpai
  • 1,689
  • 3
  • 16
  • 18
42
votes
1 answer

How do I upgrade Bash in Mac OSX Mountain Lion and set it the correct path?

since Mountain Lion still uses the old bash 3.x, I was wondering if there is a good tutorial (or if somebody could post one here) on how to upgrade bash to the latest version. Also, it would be helpful to know how to set the path so that it can be…
Tom
  • 705
  • 2
  • 9
  • 13