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
40
votes
3 answers

Installing CMake command line tools on a Mac

I installed CMake literally two days ago with no problems through the GUI and selecting "Install Command Line Tools". I just got a brand new Macbook and trying to install CMake again but the option has changed to "How to Install Command Line Tools"…
RyanOfCourse
  • 832
  • 1
  • 8
  • 15
40
votes
3 answers

How can I test my website in an old version of Safari on OS X?

Apple doesn’t seem to offer downloads of older versions of Safari, and I’m not even sure they would install on Mac OS X, as Safari seems to be part of the OS like Internet Explorer is on Windows. Is there any way to test my website on old versions…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
40
votes
4 answers

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement…
Derek Organ
  • 8,323
  • 17
  • 56
  • 75
40
votes
7 answers

error: linking with `cc` failed: exit code: 1

I have a single .rs file. When I compile it by rustc test1.rs, I get an error: error: linking with `cc` failed: exit code: 1 note: cc '-m64' '-L' '/usr/local/Cellar/rust/1.0.0-alpha/lib/rustlib/x86_64-apple-darwin/lib' '-o' 'test1' 'test1.o'…
Incerteza
  • 32,326
  • 47
  • 154
  • 261
40
votes
4 answers

Keep window always on top?

In Objective-C for Cocoa Apps it's possible to use such way to keep window always on top? How to achieve the same with Swift? self.view.window?.level = NSFloatingWindowLevel Causes build error Use of unresolved identifier 'NSFloatingWindowLevel'
AlexKorovyansky
  • 4,873
  • 5
  • 37
  • 48
40
votes
6 answers

How does Dropbox use Python on Windows and OS X?

In Windows the Dropbox client uses python25.dll and the MS C runtime libraries (msvcp71.dll, etc). On OS X the Python code is compiled bytecode (pyc). My guess is they are using a common library they have written then just have to use different…
robotshapes
  • 779
  • 2
  • 10
  • 13
40
votes
3 answers

Can't make postgresql load at startup in Mac OS

I have installed postgresql via HomeBrew. It worked but today I find that postgresql server does not run when computer start. I try to use launchctl to load it again with below command: $ launchctl load…
Minh Ha Pham
  • 2,566
  • 2
  • 28
  • 43
40
votes
5 answers

How do I pipe in FileMerge as a diff tool with git on OS X?

I'm new to git on OS X, and I'm using it via the command line. I come from the world of Tortoise SVN and Beyond Compare on Windows. I want to be able to send diffs to FileMerge. I was able to do this with TextMate simply by using: git diff |…
doug
  • 1,789
  • 3
  • 12
  • 5
40
votes
2 answers

Mac: clicking between programs requires 2 clicks

This is a simple thing but I don't see it in settings. So, I'm in my new Mac, working in a program like Safari or Firefox. I have a window in the background for another program, and it has a button. I want to click that button but have to click…
Samuel Fullman
  • 1,262
  • 1
  • 15
  • 20
40
votes
6 answers

Bower Installation Errors

Now I have installed Node and Npm and I run this command in terminal (yes I am on a mac): npm install -g bower Which follows with this output from the terminal: npm http GET https://registry.npmjs.org/bower npm http 304…
Hurricane Development
  • 2,449
  • 1
  • 19
  • 40
40
votes
5 answers

Any ReSharper equivalent for Xcode?

I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy getting to grips with a new language, platform and paradigm. One thing is though, having been using Visual Studio with R# for so long I've kind of been…
Shaun Austin
  • 3,782
  • 3
  • 23
  • 27
40
votes
3 answers

Multiple replacements with one sed command

I'm wondering how I can do a multiple find/replace using a single sed statment in Mac OSX. I'm able to do this in Ubuntu but because of the BSD nature of OSX, the command must be slightly altered. So, given a file with the string: "Red Blue Red…
user1026361
  • 3,627
  • 3
  • 22
  • 20
40
votes
1 answer

Deleting SSH keys terminal

How would I delete github_rsa.pub and id_rsa.pub SSH certificates from my mac computer using mac terminal?
neils
  • 655
  • 2
  • 6
  • 12
40
votes
16 answers

Installing mcrypt extension for PHP on OSX Mountain Lion

Apologies in advance for the potential n00b questions, I am trying to install the mcrypt extension for PHP on my OSX Mountain Lion machine. The following steps in terminal is what I have done so far to achieve my PHP install cd…
Daze
  • 506
  • 1
  • 6
  • 6
40
votes
8 answers

Android emulator crashing on Mac

When I try to launch Android emulator, it crashes on Mac OS X. It was working some time ago, but now it isn't and I don't have an idea why. Crash log: http://pastebin.com/04MjCqaS Terminal log in verbose mode: http://pastebin.com/L6y6rUr0
MattSkala
  • 1,069
  • 1
  • 10
  • 10