I must doing something wrong, because inside the NSDictionary
the values are 1 or 0 and it always prints "locked"
...
let object: NSDictionary = self.collectionObjects?.objectAtIndex(indexPath.row) as! NSDictionary
if let locked = (object.objectForKey("locked") as? NSNumber)?.boolValue {
println("locked")
} else {
println("open")
}