This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.log | |
struct Logger { | |
private let logger: OSLog | |
enum LogCategory:String { | |
case uploads | |
case downloads | |
case realm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainMenuViewController: UICollectionViewController, SharedLightsNetworkContextInterface { | |
let reuseIdentifier = "menuItemCell" | |
var localNetworkContext = LFXNetworkContext() | |
var lights = NSArray() | |
var delegate: SharedLightsReceiver? | |
override func viewDidLoad() { | |
collectionView!.registerClass(MainMenuCell.self, forCellWithReuseIdentifier: reuseIdentifier) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func loadDesserts() { | |
println("loadDesserts beginning") | |
var error: NSError? | |
var objectManager: RKObjectManager = RKObjectManager(baseURL: NSURL(string: "http://192.168.0.3:4000")) | |
let modelURL = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("Kogekunst", ofType: "momd")) | |
println(objectManager) | |
AFNetworkActivityIndicatorManager.sharedManager().enabled = true | |