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) Advanced Objective-C Memory Management

calvin
calvin
2,491 Points

This qstn needs clarification: "Which property declaration is appropriate when defining a parent-child relationship?"

The following is a multiple-choice question:

Which property declaration is appropriate when defining a parent-child relationship?

Both of the following are provided as possible answers:

@property(nonatomic, weak); @property(nonatomic, strong);

My understanding is that strong is specified for the property of the parent that points to the child, and weak is used for the child's property that points to its parent.

Maybe strong is used, like, always, but at this point in the course that's not been taught. As someone with no Obj C experience prior to this course, this question seems unclear.

Edit: The correct answer was "@property(nonatomic, strong);", so I guess the question really should be phrased, "Which property declaration is appropriate for specifying a child of this object?", or "Which property declaration is appropriate to define this object as the parent of the declared property?", or something.

I guess my real question is, how do I report this?

2 Answers

David Rynn
David Rynn
10,554 Points

I agree with OP. -> "Which property declaration is appropriate to define this object as the parent property?" or something like that