Author Topic: Made it to Page 358  (Read 4599 times)

lennyeiger

  • Newbie
  • *
  • Posts: 11
    • View Profile
Made it to Page 358
« on: June 20, 2016, 10:29:13 PM »
I've been working on pages 350-365 in the iBook version all day. I've gotten a few errors.

I've re-read the code to look for errors 40 times now and I am wondering if there is some way to get a little assistance.

I just got an error that states: Value of type NSManagedObject has no member statusDesciption.

This line is highlighted:  the code is on page 362 in the iBook...

 if deliveryStatusEntity.statusDescription == self.shipmentEntity.deliveryStatus.statusDescription {

What am I doing wrong?

TIA

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
Re: Made it to Page 358
« Reply #1 on: June 21, 2016, 02:09:38 PM »
I noticed in your message that you you left out the "r" in statusDescription (statusDesciption). Could that be the problem?

All the best!
Kevin

lennyeiger

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Made it to Page 358
« Reply #2 on: June 21, 2016, 02:50:56 PM »
Kevin, thanks for responding.

No, I just solved it. On page 331 of iBook, under point 9, the deliveryStatus var shows:

@NSManaged var deliveryStatus:DeliveryStatusEntity?

When it was originally generated (do I remember that it auto-generated from the database spec?) it looked like this:

@NSManaged var deliveryStatus: NSManagedObject

It's a bit worrisome since you mentioned that if one changes the database this file will get overwritten...

I had one other capitalization of "delivery" to fix, a couple of !'s Xcode requested on DeliveryStatus and now I'm good...
(at least until the next time.)

Lenny