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 trialSergey Geraskov
3,621 Pointsdon't understand where is a mistake...
2 Answers
Stone Preston
42,016 Pointsyour object is of type id, so you can just assign it an NSNumber literal like so:
id thing = nil;
thing = @4;
Sergey Geraskov
3,621 Pointsthanks for answer)
that was a noob question...
Stone Preston
42,016 Pointsnot at all. the dynamic typing can be a little confusing, which is why its one of the last topics covered