# Cocoa Bindings in Tutorial

**URL:** <https://forums.kodeco.com/t/cocoa-bindings-in-tutorial/214000>\
**Category:** Swift\
**Created:** [February 22, 2026, 11:25am UTC](https://forums.kodeco.com/t/cocoa-bindings-in-tutorial/214000 "2026-02-22T11:25:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0497330374](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0497330374/32/111647_2.png) [@0497330374](https://forums.kodeco.com/u/0497330374)\
**Post date:** [February 22, 2026, 11:25am UTC](https://forums.kodeco.com/t/cocoa-bindings-in-tutorial/214000/1 "2026-02-22T11:25:24Z")

</div>

Windows and WindowController Tutorial for macOS wordCount and paragraphCount dynamic variables are not key value coding compliant at the NSTextViews for displaying.

Error in debugger console explains this.

---

<div class="post-metadata">

**Author:** ![dora745nevels](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dora745nevels/32/110937_2.png) [@dora745nevels](https://forums.kodeco.com/u/dora745nevels)\
**Post date:** [February 24, 2026, 5:03am UTC](https://forums.kodeco.com/t/cocoa-bindings-in-tutorial/214000/2 "2026-02-24T05:03:24Z")

</div>

Hello,  
To fix this, ensure your wordCount and paragraphCount variables are marked with the @objc attribute (or @objc dynamic) within your controller or model. macOS Cocoa bindings rely on the Objective-C runtime to locate these properties, and without this tag, NSTextView cannot find the keys at runtime.

Best regards,  
Dora Nevels  
[voyafinancial](https://www-voyafinancial.com)

---

<div class="post-metadata">

**Author:** ![0497330374](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0497330374/32/111647_2.png) [@0497330374](https://forums.kodeco.com/u/0497330374)\
**Post date:** [February 25, 2026, 3:19am UTC](https://forums.kodeco.com/t/cocoa-bindings-in-tutorial/214000/3 "2026-02-25T03:19:32Z")

</div>

> [@dora745nevels](#):
>
> paragraphCount

Yep,  
These are of @objc dynamic in “WordCountViewController.swift”

Still blank next to Pop Over labels for count of Words and Paragraphs.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [August 8, 2026, 3:25am UTC](https://forums.kodeco.com/t/cocoa-bindings-in-tutorial/214000/4 "2026-08-08T03:25:47Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
