Skip to content

Instantly share code, notes, and snippets.

@3lvis
Created September 18, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3lvis/5d70998680cda6ae9f68 to your computer and use it in GitHub Desktop.
Save 3lvis/5d70998680cda6ae9f68 to your computer and use it in GitHub Desktop.
ManagedObject.swift
import CoreData
@objc(Slot)
public class Slot: _Slot {
static func request() -> NSFetchRequest {
let request = NSFetchRequest(entityName: Slot.entityName())
request.sortDescriptors = [NSSortDescriptor(key: "startTime", ascending: true)]
return request
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment