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

Why won't this search bar work?

Okay here is a practice app I am building. I think my logic was flawed on how I chose to do the database, but whats done is done lol. So I am trying to search this table but just can't seem to not return nil. I think it has to do with getting the dictionary into an array. I have tried everything including error handling but the moment I employed code for that I get an error that essentially it isn't compliant with the NSSearchResultUpdating protocol. It just doesn't seem to like 'throws' at the end of that function. Any ideas?

https://www.dropbox.com/sh/yhwj3zn4jkoodjb/AACPfUAgv-m3S-W3Q-Oi61e4a?dl=0