dnlgrv

Quick tip: NSPredicate NOT IN

When thinking about SQL you would usually write:

let predicateFormat = "name NOT IN %@"

Unfortunately, in Swift at least, NSPredicate doesn’t like this syntax, so you should use:

let predicateFormat = "NOT (name in %@") NSPredicate(format: predicateFormat, argumentArray: [["dnlgrv"]])

Hope this helps someone out!