Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dantastic

macrumors 6502a
Original poster
Jan 21, 2011
572
678
I'm going through Cocoa programming for Mac OS X 3rd ed.

I'm currently trying to do the sample app in chapter 11 - core data app. It's a very short chapter and everything seems straight forward but I must be missing something.

First of all I drop the array controller into my objects. I then need to bind the managedObjectContext of the arraycontroller to the managedObjectContect of the Files owner. This is illustrated in pic 11.3 but for me it won't autocomplete and if I type it in manually I get a warning symbol on the right hand side of the text field indicating that things aren't working properly.

Simply ignoring this for the time being isn't really working either as later on I must bind to the 'Car' entity but that is not showing up either.

If feels like there is something missing, I feel like I should do something else to the arraycontroller...

I'm using xcode4, could it be that the document template has changed since the book was published?
Could someone who has the book and is a bit more familiar with arraycontroller have a look at the first couple of pages in chapter 11 and see if the process is still correct using xcode4.

thanks!
 

dantastic

macrumors 6502a
Original poster
Jan 21, 2011
572
678
I actually stand corrected.

I just kept on going anyway and the app is working just as advertised. I'm still a bit curious though - why doesn't autocomplete work?
 

Attachments

  • Screen shot 2011-06-16 at 16.06.08.png
    Screen shot 2011-06-16 at 16.06.08.png
    30.1 KB · Views: 112
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.