//
// DocHubLocation.swift
// DocHub
//
// Created by Tristan Juricek on 6/24/14.
// Copyright (c) 2014 Perforce. All rights reserved.
//
import AppKit
import Foundation
// Tracks the current location of "where" we are in the application
class DocHubLocation : NSObject {
let libraryObserver = PropertyObserver<Library>()
let areaObserver = PropertyObserver<Area>()
var library:Library? {
didSet {
if let lib = library {
libraryObserver.fire(lib)
}
}
}
var area:Area? {
didSet {
if let ar = area {
areaObserver.fire(ar)
}
}
}
}