I have an NSFetchRequest
which is returning the objects\' properties in an NSDictionaryResultType
. Is it possible to also get the objects\' ObjectI
Nick Hutchinson's answer in Swift:
let idDescription = NSExpressionDescription()
idDescription.name = "objectID"
idDescription.expression = NSExpression.expressionForEvaluatedObject()
idDescription.expressionResultType = .objectIDAttributeType
I can't comment on it because I don't have enough rep :(