Chapter 6, version 5.0

I’m in chapter 6 of the 5th version of the book and getting the following error:

“Argument passed to call that takes no arguments”

on the following line of
let newAttachment = ImageAttachment(entity: description!, insertInto: manager.destinationContext)

Did I forget something in another file?

Just after I pressed send, I discovered my error. In the ImageAttachment class, I failed to put a colon here: “class ImageAttachment: Attachment”

class ImageAttachment: Attachment {
@NSManaged var image: UIImage?
@NSManaged var width: Float
@NSManaged var height: Float
@NSManaged var caption: String

}

@afinque Glad you sorted it out! Cheers! :]

This topic was automatically closed after 166 days. New replies are no longer allowed.