Skip to content

Instantly share code, notes, and snippets.

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
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)
@foffer
foffer / Logger.swift
Created July 23, 2017 20:22
Wrapper on os.log
import os.log
struct Logger {
private let logger: OSLog
enum LogCategory:String {
case uploads
case downloads
case realm