     private lazy var scaleField: SBBLKGUITextField = {
         let scaleField = SBBLKGUITextField(frame: NSMakeRect(6, self.imageViewSize.height - 216, 67, 24))
         scaleField.delegate = self
+        scaleField.formatter = self.numberFormatter
         return scaleField
     }()
     

                per = CGFloat(scaleField.integerValue) / 100
            }
            if per < 0.01 {
                scaleField.stringValue = String(1)
                per = 0.01
            }
            if onlyVisibleButton.state == NSOnState {

                }
                SBConstrain(&newSize.width, min: 1)
                SBConstrain(&per, min: 0.01)
                widthField.integerValue = Int(newSize.width)
                scaleField.integerValue = Int(per * 100)
            }
            newSize.height = value
            heightField.integerValue = Int(newSize.height)
        } else if field === scaleField {
            if locked {
                per = CGFloat(scaleField.integerValue) / 100
                if per < 0.01 {
                    scaleField.integerValue = 1
                    per = 0.01
                }
                if onlyVisibleButton.state == NSOnState {
