Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Objective-C Basics (Retired) Foundation Framework NSDictionary

Clinton Medbery
Clinton Medbery
1,559 Points

The example video has the year being set as a NSNumber I believe while the exercise here requires a string.

Might want to fix that.

2 Answers

Clinton Medbery
Clinton Medbery
1,559 Points

Still, it is unnecessarily confusing. In fact, the message that comes back says that I had the wrong year, instead of a completely wrong type of data. It would probably be even more confusing to someone who had little programming experience.

Stone Preston
Stone Preston
42,016 Points

yeah sometimes the error messages dont exactly match the reason you arent passing. The challenge engine is not a perfect system and it doesnt catch every little thing (and it is usually quite picky.) The errors are usually more like hints (such as "be sure you are setting the year correctly") rather than "this is what is wrong." However I agree they should try and make the challenge engine more responsive to incorrect answers.

Stone Preston
Stone Preston
42,016 Points

the challenges dont usually contain exactly whats in the video (though sometimes they do)