swift 3 convert string to objectID

Viewed 2711

i work with swift 3 and nsoutlineview. i would like to save the objectID of a core data record into a textfield. so i have to convert it into a string:

txtFied.stringValue = "\(CoreData[outlineView.selectedRow].objectID)"

how can i convert it back to an NSManagedObjectID?

1 Answers
Related