Filling an array with core data attributes
问题 I'm trying to fill my array. var weights = [] with attributes from an NSManaged object. My core data relationship is like follows Client<-->>Assessment. I have a 'weight' attribute within assessment and I would like to fill my array with these values which are strings. My variable: var client: Client! = nil successfully retrieves the specific client that I have selected, but I do not know how to fill my array with the values of that particular client's assessment attribute called 'weight'. I