# Apple Game Frameworks and Technologies: Searching child nodes by class name (page 163)

**URL:** <https://forum.devtalk.com/t/apple-game-frameworks-and-technologies-searching-child-nodes-by-class-name-page-163/79647>\
**Category:** PragProg Customers\
**Tags:** book-apple-game-frameworks-and-technologies, errata\
**Created:** [23 October 2022 21:38 UTC](https://forum.devtalk.com/t/apple-game-frameworks-and-technologies-searching-child-nodes-by-class-name-page-163/79647 "2022-10-23T21:38:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnrnyquist](https://forum.devtalk.com/user_avatar/forum.devtalk.com/johnrnyquist/32/4559_2.png) [@johnrnyquist](https://forum.devtalk.com/u/johnrnyquist)\
**Post date:** [23 October 2022 21:38 UTC](https://forum.devtalk.com/t/apple-game-frameworks-and-technologies-searching-child-nodes-by-class-name-page-163/79647/1 "2022-10-23T21:38:23Z")

</div>

@Paradox927

Page 163 says:  
Alternatively, you can use the class name instead, like this:  
player = childNode(withName: “Player”) as? Player

I do not believe you can find by class name. I’ve tried it multiple ways and checked documentation.

---

<div class="post-metadata">

**Author:** ![nerbard](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nerbard](https://forum.devtalk.com/u/nerbard)\
**Post date:** [15 November 2023 16:58 UTC](https://forum.devtalk.com/t/apple-game-frameworks-and-technologies-searching-child-nodes-by-class-name-page-163/79647/2 "2023-11-15T16:58:05Z")

</div>

@Paradox927

Same remark here. Using the class name doesn’t work.  
This is strange because the documentation confirms that it should work:

“When specifying a search string, you can either specify the name of the node or a class name”
