Fix build warnings in _CPTableTextAttachment

Replaced the CPTextView.j import with forward declarations for CPTextView and CPTextContainer (the latter previously reached via the removed import).

The previous import graph created a circular dependency (_CPTableTextAttachment.j -> CPTextView.j -> _CPRTFParser.j / _CPRTFProducer.j -> _CPTableTextAttachment.j).

This caused the legacy compiler to emit a class registration warning during clean builds, as the class was unregistered at the time of resolution. Incremental builds masked this warning via cached symbol tables.

Using forward declarations breaks the cycle and ensures warning-free clean and incremental builds.
This commit is contained in:
David Richardson
2026-08-20 15:31:45 -06:00
parent 548ed836a0
commit a1ac821678
+2 -1
View File
@@ -19,7 +19,8 @@
*/ */
@import "CPView.j" @import "CPView.j"
@import "CPTextView.j" @class CPTextView;
@class CPTextContainer;
@import "CPTextField.j" @import "CPTextField.j"
@import <Foundation/CPAttributedString.j> @import <Foundation/CPAttributedString.j>