Skip to content

Instantly share code, notes, and snippets.

@ftiff
ftiff / prefs_to_json.swift
Last active March 22, 2017 07:21
get json from preferences
//
// main.swift
// prefs
//
// Created by Francois Levaux on 21.03.17.
// Copyright © 2017 Francois Levaux. All rights reserved.
//
// Similar to $ plutil -convert json /Library/Preferences/io.fti.SplashBuddy.plist -o - -r
import Foundation
@ftiff
ftiff / EnableButtonIfAtLeastOneCheckboxIsSelected.swift
Created May 23, 2017 19:49
How to enable a button if one or more checkbox is selected
//
// EnableButtonIfAtLeastOneCheckboxIsSelected.swift
// SplashBuddy
//
// Created by François Levaux on 23.05.17 (Swift 3)
// Copyright © 2017 François Levaux-Tiffreau. All rights reserved.
//
// Create 5 checkboxes & link them to this file
// Create one button, bind "Enabled" to "Enable Button If At Least One Checkbox Is Selected"
// with Model Key Path set to "self.atLeastOneSelectedButton"
@ftiff
ftiff / sucatalog_pkg.txt
Created September 5, 2017 08:41
Packages from 10.13 seed
# curl https://swscan.apple.com/content/catalogs/others/index-10.13seed-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz
002_Card.pkg
002_Card_Preview_DE.pkg
002_Card_Preview_EN.pkg
002_Card_Preview_ES.pkg
002_Card_Preview_FR.pkg
002_Card_Preview_IT.pkg
002_Card_Preview_JA.pkg
002_Card_Preview_NL.pkg