Tag: #macos
What is the order of
NSWindow
levels? The order of
NSWindow
levels is defined by the CGWindowLevelKey
constants, with lower numerical values being behind higher ones. The NSWindow.Level
enum provides a more limited set of semantic level names, with some levels overlapping. 2020-08-03devices(for:) was deprecated in macOS 10.15: Use AVCaptureDeviceDiscoverySession instead
Use
AVCaptureDeviceDiscoverySession
instead of the deprecated AVCaptureDevice.devices(for:)
to discover video capture devices. 2020-07-31How to resolve “the app shows no response upon launch” in App Review
To resolve “the app shows no response upon launch” in App Review, identify and handle potential sources of fatal errors, such as uncaught exceptions, force-unwrapping nil values, unsafe downcasts, and out-of-bounds array access. Display a helpful error message instead of crashing. 2020-04-24
How to build a .dmg to distribute MacOS apps
Package a macOS app for distribution outside the Mac App Store by archiving it in Xcode, exporting it with a Developer ID signature, then creating a .dmg disk image. 2017-08-12
How to make a Cocoa application without a
.xib
file To create a Cocoa app without a
.xib
file, remove the NSMainNibFile
key from the Info.plist
, and replace the @NSApplicationMain
annotation on your AppDelegate
class with a custom main.swift
file that manually sets up the application and its delegate. 2017-03-17How to add a developer account to XCode
Xcode uses “teams” to manage developer identities, and revoking a certificate on one device may require regenerating provisioning profiles. 2017-03-03
How to submit an app build to iTunes Connect
To submit a macOS app build to iTunes Connect, archive the app in Xcode, enable App Sandbox, then upload the build. 2017-03-02
How do I create the AppIcon for my app?
To fix misconfigured App Icons, create properly-sized PNG files and update the
Contents.json
file to reference the correct image files. 2017-03-01How to write an assembly ‘hello world’ on macOS
A “Hello, world!” program in x86-64 assembly for macOS, using the NASM assembler and system calls for writing to stdout and exiting. 2017-02-20
What system calls does macOS have?
All system calls on macOS 10.12, categorized by the functionality they provide, such as process management, file operations, memory management, etc. 2017-01-31
How do I change the resolution on macOS?
To get more screen real-estate, go to System Preferences > Displays, and select “More Space” . 2016-11-18
All content copyright James Fisher.