Group Group Group Group Group Group Group Group Group

Chapter 6, version 5.0

#1

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?

#2

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

}

#3

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

closed #4

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