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:

107565 questions
33
votes
6 answers

Programmatically get screen size in Mac OS X

I am able to return the screen size using: - (void) getScreenResolution { NSArray *screenArray = [NSScreen screens]; NSScreen *mainScreen = [NSScreen mainScreen]; unsigned screenCount = [screenArray count]; unsigned index = 0; …
WrightsCS
  • 49,871
  • 22
  • 132
  • 180
33
votes
3 answers

Conda: Creating a virtual environment

I'm trying to create a virtual environment. I've followed steps from both Conda and Medium. Everything works fine until I need to source the new environment: conda info -e # conda environments: # base * …
Forrest
  • 389
  • 1
  • 3
  • 9
33
votes
4 answers

Is it possible to install only mysqldump on macOS

Is it possible to install only mysqldump on macOS without MySQL itself. I'm using MySQL db via Docker, but can't dump the DB from my local machine via MySQL Workbench. /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump is version 5.7.17,…
D.R.
  • 1,676
  • 2
  • 16
  • 37
33
votes
10 answers

How can I programmatically change the background in Mac OS X?

How would I go about programmatically changing the desktop background in Mac OS X? I'd like to use python, but I'm interested in any way possible. Could I hook up to Terminal and call a certain command?
stalepretzel
  • 14,150
  • 19
  • 71
  • 88
33
votes
5 answers

Xcode Swift code folding/collapse

I know we can use "Shift + Alt + Cmd + Left" to fold/collapse swift code in Xcode, but can anyone tell me how to fold/collapse for functions only? Not properties? Or any alternative way? The default folding method does the job, but actually also…
brianLikeApple
  • 3,803
  • 1
  • 23
  • 44
33
votes
6 answers

Emacs question - hash key

I have a Mac Laptop and I am connecting to server running Linux. As Alt+3 is already bound in EMACS to a command, so I cannot insert the hash symbol in a file. I have tried the following solution I found online: (global-unset-key (kbd…
Andrei
  • 1,642
  • 3
  • 13
  • 15
33
votes
4 answers

Xcode 8 Image Completion

In Xcode 8, you have images autocompleted while typing. Question is : Why? I tried to init UIImage with the suggested result, but it doesn't work. Does anyone know how to use it ?
CZ54
  • 5,144
  • 1
  • 20
  • 36
33
votes
5 answers

changing permission for files and folder recursively using shell command in mac

In Linux we can use the following command to change permission mode of the files and folders recursively. find "/Users/Test/Desktop/PATH" -exec * chmod 777 {} \; how could i do the same for mac as i m getting the following error…
pytho
  • 331
  • 1
  • 3
  • 4
33
votes
4 answers

Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. (Django 1.8 and OSX ElCapitan)

I'm trying to internationalize a Django app by following the wonderful Django documentation. The problem is when I try to run command to create language files: python manage.py makemessages -l fr It outputs an error : CommandError: Can't find…
Louis Barranqueiro
  • 8,594
  • 5
  • 35
  • 49
33
votes
4 answers

Connection refused on nginx docker container

I've installed Docker Toolbox in macOS and I'm following Docker's simple tutorial on deploying Nginx. I've executed docker run and confirmed that my container has been created: docker run --name mynginx1 -P -d nginx docker ps 40001fc50719 nginx …
Jonathan
  • 10,693
  • 16
  • 74
  • 110
33
votes
6 answers

Install gnuplot 5.0.1 on OSX

I downloaded the source files for gnuplot 5.0.1 (gnuplot-5.0.1.tar.gz) from the source forge page. I also installed the Command Line Tools on my OS X 10.7.5 so that I have gcc and make in the /usr/bin folder. I followed the installation…
dada
  • 1,158
  • 1
  • 11
  • 35
33
votes
3 answers

Retrieve names of running processes

First off, I know that similar questions have been asked, but the answers provided haven't been very helpful so far (they all recommend one of the following options). I have a user application that needs to determine if a particular process is…
Dave DeLong
  • 239,073
  • 58
  • 443
  • 495
33
votes
1 answer

NSWindowController/NSViewController "Presentation" setting in Storyboard

What exactly does the Presentation option(in Attribute Inspector) do in StoryBoard for Cocoa. It gives two options to select from Single Multiple P.S When googled the title, results are related to powerpoint presentation
Kaunteya
  • 2,473
  • 30
  • 58
33
votes
1 answer

double click and select the path(including '/') in Terminal.app

I'm using Terminal.app on Mac OS10.6.3, with gnu screen and zsh. What I want to do is, see pwd(or an URL) in Terminal.app and double click on it, and select the whole path, to copy and paste after that. But what I get now is a single directory name,…
mash
  • 3,416
  • 2
  • 27
  • 33
33
votes
3 answers

Is it possible to copy constraints from one view to another?

Suppose I use Interface Builder to create UI in Storyboard with Auto Layout. Can I copy or move some constraints from one view to another?
kelin
  • 9,553
  • 6
  • 63
  • 92
1 2 3
99
100