Updated to Xcode6-Beta4 syntax & semantics.

Regrettably, it doesn’t really work with this Swift implementation.
The previous version was fully functional with Xcode6-Beta2.