Swift: cómo filtrar datos básicos
Estoy usando el siguiente código para obtener todos los datos en "categoría".
let appDelegate = UIApplication.sharedApplication().delegate as AppDelegate
let managedContext = appDelegate.managedObjectContext!
let fetchRequest = NSFetchRequest(entityName:"category")
let fetchedResults = managedContext.executeFetchRequest(fetchRequest, error: &error) as [NSManagedObject]?
¿Cómo solo traigo categorías donde el "tipo" es igual a "productos"?