Skip to content

Instantly share code, notes, and snippets.

View bewebste's full-sized avatar

Brian Webster bewebste

View GitHub Profile
@bewebste
bewebste / crash.log
Created November 20, 2014 21:57
Recursive CFRetain crash
Date/Time: 2014-10-23 21:09:32 +0000
OS Version: Mac OS X 10.10.0 (14A389)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x7fff5f3ffff8
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x00007fff924ac084 CFRetain + 4
@bewebste
bewebste / wrapper.swift
Last active September 30, 2016 23:34
Swift 3 generic object wrapper gives EXC_BAD_ACCESS
//: Playground - noun: a place where people can play
import Cocoa
/*
I've been using an object like ObjectWrapper in Swift 2.x without any problems
to store a Swift struct as a property an Objective-C object, and then later
access and use that struct from other Swift code.