Skip to content

Instantly share code, notes, and snippets.

View clburlison's full-sized avatar

Clayton Burlison clburlison

View GitHub Profile
@clburlison
clburlison / cfpref.go
Last active June 14, 2018 00:26
playing with cgo and CFPreferencesCopyAppValue. Currently supports reading Strings, NSData, and Booleans.
package main // import "gitlab.com/clburlison/cfprefs"
import (
"fmt"
"unsafe"
)
/*
#cgo LDFLAGS: -framework CoreFoundation
#include <CoreFoundation/CoreFoundation.h>
@clburlison
clburlison / main.go
Created July 20, 2018 14:16
2018 Dallas Apple Meetup
package main // import "gitlab.com/clburlison/cfprefs"
// Huge credits to Tom Burgin (bur) & Victor Vrantchan (groob)
import (
"fmt"
"unsafe"
"reflect"
)
/*