         var ret: Letter?
         if self.title != ""
         {
-            var idChar = self.title[self.title.startIndex]
+            let idChar = self.title[self.title.startIndex]
             if idChar != "$"
             {
                 ret = Letter(rawValue: idChar)

//  EnigmaMachine
//
//  Created by Jeremy Pereira on 23/03/2015.
//  Copyright (c) 2015 Jeremy Pereira. All rights reserved.
//
/*


protocol KeyboardDelegate: AnyObject
{
    func letterPressed(aLetter: Letter, keyboard: KeyboardView);
    func letterReleased(keyboard: KeyboardView);
}

class KeyboardView: NSBox
{
    weak var keyboardDelegate: KeyboardDelegate?
    var timer: Timer?

    @IBOutlet var singleStep: AutoKeyButton!
    @IBOutlet var autoInput: NSSegmentedControl!

    @IBAction func keyPressed(sender: AnyObject)
    {
        if let _ = sender as? KeyboardButton, let keyboardDelegate = keyboardDelegate
        {
            keyboardDelegate.letterReleased(keyboard: self)
        }
