Mac OS X, Programming

OpenMP Clang in Xcode

I’ve been playing around with prime numbers recently, which (naturally?) extended into an investigation into parallel programming. I installed the latest version of GCC 5 (v5.3.0 at the time of writing) using these instructions and got OpenMP running (support is built-in). I’m fine with using Terminal but I thought it would be interesting to try […]

General

NBA Playoff Bracket 2016

I just realized I forgot to post this. It’s not pretty, in that it doesn’t look nice. It was done through OfficePoolManager. I couldn’t find an online tool that allowed you to pick your teams like they have for March Madness and the NHL playoffs.

iOS, Programming

UITextView Padding

If you align a UITextView with another element, particularly a UILabel, using Auto Layout you will notice the text in the UITextView is slightly indented. The UITextView is actually implemented inside an NSTextContainer which has some padding around it. To remove this (left/right) padding, set the following property of the UITextView to zero: textView.textContainer.lineFragmentPadding = 0

iOS, Programming

Embedded Content Contains Swift Code

Ran into this error today: dyld: Library not loaded: @rpath/libswiftCore.dylib It was solved by changing the Build Option: Embedded Content Contains Swift Code to Yes The project in question was Objective-C based but had an embedded project (Charts) written in Swift.

Scroll to Top