     
     required init?(coder: NSCoder) {
         fatalError("init(coder:) has not been implemented")
+    }
+
+
+    func updateView() {
+        guard let incident = self.incident else {
+            logError("Incident controller has no incident?")
+            return
+        }
+
+        let numberToDisplay: String
+
+        if let number = incident.number {
+            numberToDisplay = "\(number)"
+        } else {
+            numberToDisplay = "(new)"
+        }
+
+        numberField?.stringValue = "\(numberToDisplay)"
+
+        window?.title = "\(numberToDisplay): \(incident.summaryAsText)"
+
+        let stateTag: IncidentStateTag
+
+        if let state = incident.state {
+            switch state {
+            case .New       : stateTag = .New
+            case .OnHold    : stateTag = .OnHold
+            case .Dispatched: stateTag = .Dispatched
+            case .OnScene   : stateTag = .OnScene
+            case .Closed    : stateTag = .Closed
+            }
+        } else {
+            stateTag = .New
+        }
+
+        statePopUp.selectItemWithTag(stateTag.rawValue)
     }
 
 

    }

}

class IncidentController: NSWindowController {

    var dispatchQueueController: DispatchQueueController!

    var incident: Incident?

    @IBOutlet weak var numberField                   : NSTextField!
    @IBOutlet weak var statePopUp                    : NSPopUpButton!
