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
5 answers

Include Headers from added frameworks on Xcode

I want to work with some frameworks like glew and cg so i manually added the needed frameworks to my project by right clicking the project -> Add files to ... and choosing the correct framework. The problem is, when i try to include the header…
Itzik984
  • 15,968
  • 28
  • 69
  • 107
42
votes
15 answers

Create a folder and sub folder in Excel VBA

I have a pull down menu of companies that is populated by a list on another sheet. Three columns, Company, Job #, and Part Number. When a job is created I need a folder for said company and a sub-folder for said Part Number. If you go down the path…
Matt Ridge
  • 3,633
  • 16
  • 45
  • 63
41
votes
9 answers

How can I install PIL on mac os x 10.7.2 Lion

I've tried googling & looking up some other people's questions. However, I still couldn't find a clear/simple recipe to install PIL (for python 2.6 or 2.7) on mac os x 10.7.2 Lion.
user1178887
  • 437
  • 1
  • 5
  • 7
41
votes
4 answers

In Mac OS X, how can I get an accurate count of file descriptor usage?

On Linux, ulimit -n can be used to change or view the limit on the number of file descriptors for a process, and lsof -p nnn | wc -l seems to consistently report the actual file descriptor usage. But on Mac OS X, lsof -p nnn | wc -l can return a…
jfklein
  • 877
  • 1
  • 11
  • 13
41
votes
5 answers

Remove Sandboxing

I have another question dealing with app sandboxing. So I need access to the users' home directory and at the same time the app should be able to shut down the Mac. This requires to not using sandboxing. My problem is that I don't know how to remove…
user610246
  • 732
  • 1
  • 7
  • 11
41
votes
9 answers

nvm install node fails to install on macOS Big Sur M1 Chip

I'm trying to install the latest version of node using nvm. I've just got the newly released SIlicon Macbook Pro with the M1 chip (not sure if that is related). I've installed xcode on the app store and the xcode tools on the command line. The main…
adityaatri
  • 1,967
  • 2
  • 7
  • 10
41
votes
2 answers

How do I add Sublime Text 2 keybindings?

I am looking to get the following assigned to Keybindings. I am able to make a snippet for this, yet would prefer to be able to CTRL + > just like in Textmate. <%= %> What do I need to add and where do I need to add it, or where could I find out.
ChuckJHardy
  • 6,956
  • 6
  • 35
  • 39
41
votes
20 answers

Not able to run Eclipse on macOS Big Sur

I am not able to run eclipse on macOS Big Sur developers beta I am getting an error stating "Failed to create the java virtual machine". Is there any way to solve the error The java version I am running:
Aayush Agarwal
  • 421
  • 1
  • 4
  • 4
41
votes
7 answers

Angular CLI ng command not found on Mac Os

I looked at the numerous posts on here regarding this issue and tried them but had no success resolving this. I am on MacOS and here is what I have done so far based on recommendations I have found here but I still get this error ~~ sudo npm…
pixel
  • 9,653
  • 16
  • 82
  • 149
41
votes
4 answers

Define macOS window size using SwiftUI

I'm using SwiftUI to develop a new macOS application and can't figure out how to define the window size. In the AppDelegate, the window size is defined as shown below: // --- AppDelegate.swift --- import Cocoa import…
wigging
  • 8,492
  • 12
  • 75
  • 117
41
votes
1 answer

how do I add /usr/local/git/bin/ to the PATH on mac osx?

Possible Duplicate: git: command not found how do I add /usr/local/git/bin/ to the PATH on mac osx? I just installed git but it is not recognizing commands. It only responds with "command git not found", and I believe this may be the solution but…
Christian
  • 1,685
  • 9
  • 28
  • 48
41
votes
8 answers

How do I do date math in a bash script on OS X Leopard?

I realize I could whip up a little C or Ruby program to do this, but I want my script to have as few dependencies as possible. Given that caveat, how does one do date math in a bash script on OS X? I've seen a post (on another site) where someone…
Gregory Higley
  • 15,923
  • 9
  • 67
  • 96
41
votes
7 answers

How to map a custom protocol to an application on the Mac?

I'm trying to register a custom protocol to an application on the Mac, i.e: User clicks on link with "abcdef://some/url/here" An installed application is launched with the above string passed as the first param I've done this successfully on…
cliff.meyers
  • 17,666
  • 5
  • 51
  • 66
41
votes
13 answers

Mac App Store Receipt Validation Code?

Wondering if anyone has a tutorial or working code for the new Mac App Store's receipt validation? About the only references I've been able to find so far are Apple's stellar documentation on the topic and one open source project which compiles but…
Rei
  • 1,148
  • 2
  • 12
  • 16
41
votes
7 answers

What size screenshots should be used for IAPs ( In app purchases ) for Mac apps?

What dimensions should be used for IAP screenshots for Mac apps on iTunesconnect? I have tried uploading PNG screenshots with: 2560 x 1600 px 640 x 920 px to no avail... but the upload does not seem to be accepted... Can anyone advise which…
jcpennypincher
  • 3,970
  • 5
  • 31
  • 44