Swift optimizer considered harmful

For some time I struggled with one weird bug reported to CryptoSwift [https://github.com/krzyzanowskim/CryptoSwift]. Few people report [https://github.com/krzyzanowskim/CryptoSwift/issues/57] that sometimes they got mangled result of decryption with AES. Turn out the code that produce mangled output was PKCS7 [https://tools.ietf.…

CryptoSwift, the talk

Earlier this year I gave talk named "CryptoSwift: Cryptography You Can Do". The video was recorded on Swift Summit Conference [https://www.swiftsummit.com] in London, earlier this year. Thanks to realm.io and Swift Summit team, transcript, video and presentation is available online. I encourage you to…

Let's talk about sections for NSTableView

I'll discuss one of the possibility how to add sections to plain NSTableView. Turn out it's not that hard but require some work to do.…

Natalie - Storyboard Code Generator

A strongly-typed language like Swift is a big blessing. I truly love how refactoring of code becomes a less scary operation. Today if I change the type of a variable, it won't compile (ok, I can hear you ask about "Any"... just don't)…

Swift: Raw{Not}Representable enum

Preconditions: Xcode Version 6.3 (6D532l), Swift 1.2 In Swift [https://blog.krzyzanowskim.com/2015/03/09/swift-asserts-the-missing-manual/] > An enumeration defines a common type for a group of related values and enables you to work with those values in a type-safe way within…