Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
// | |
// NSApplication+NSResponderDebug.swift | |
// | |
// Created by Stephan Casas on 3/18/24. | |
// | |
import Cocoa; | |
extension NSApplication { | |
#!/bin/sh | |
pids=`ps axo pid,command | grep CoreSimulator | grep -v "grep CoreSimulator" | cut -c 1-5` | |
if [ "$1" = "go" ]; then | |
kill -9 $pids | |
elif [ "$1" = "echo" ]; then | |
echo $pids | |
else | |
pid_param=`echo $pids | tr -s ' ' ','` |
// | |
// CacheAsyncImage.swift | |
// | |
// Created by Costantino Pistagna on 08/02/23. | |
// | |
import SwiftUI | |
struct CacheAsyncImage<Content, Content2>: View where Content: View, Content2: View { | |
private let url: URL? |
// | |
// wavecuepoint.c | |
// Created by Jim McGowan on 29/11/12. | |
// Turned into command-line utility by David Hilowitz on 19/11/16. | |
// jim@bleepsandpops.com | |
// jim@malkinware.com | |
// | |
// This function reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line) | |
// and creates a new .wav file with embedded cue points for each location. The code is standard, portable C. | |
// |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
# A Best in Class Checklist | |
A boiled down checklist adapted from this [post](https://www.swiftjectivec.com/a-best-in-class-app/), created by @jordanmorgan10. | |
> To use this, create a Github Issue in your own repo, and simply copy and paste this text. | |
## iOS Core Technology | |
_Things any iOS app can benefit from_ | |
- [ ] iCloud Sync | |
- [ ] Focus Filter Support |
// | |
// Debug.swift | |
// | |
// Created by Craig Hockenberry on 3/15/17. | |
// Updated by Craig Hockenberry on 2/20/24. | |
// Usage: | |
// | |
// SplineReticulationManager.swift: | |
// |
%{ | |
#include "optionalvalue.h" | |
%} | |
// Provide simplified declarations of various template classes we use for SWIG. | |
template <typename T> | |
class OptionalValue | |
{ | |
public: | |
OptionalValue(); |