In SQL if I want to update every value in a column if its equal to x or less than X i can just put that in a query and fire it off.
eg
UPDATE Records SET isCurrent=0 WHERE isCurrent='1'
Can I do this in Core Data (I hope so) or do I have to do a query to get every record out (as an NSManagedObject) where isCurrent=0 then iterate through setting each and every one then saving?
eg
UPDATE Records SET isCurrent=0 WHERE isCurrent='1'
Can I do this in Core Data (I hope so) or do I have to do a query to get every record out (as an NSManagedObject) where isCurrent=0 then iterate through setting each and every one then saving?