Files
cappuccino/Tests/AppKit
David Richardson 178a7d2aec AppKit: Add Copy Style and Paste Style to CPTextView
CPTextView lacked implementations for copyFont: and pasteFont:
(declared as abstract methods in CPText), causing standard Copy Style and Paste Style menu items to trigger exceptions when invoked.

* AppKit/CPTextView/CPTextView.j:
  - Implement copyFont: to copy character attributes (excluding paragraph style, matching Cocoa) of the initial selection character or current typing attributes to the font pasteboard.
  - Implement pasteFont: to apply copied character attributes to the selection or typing attributes with undo support, preserving individual paragraph styles.
  - Update menu validation logic to enable Copy Style in rich text and Paste Style in editable rich text when the font pasteboard contains valid styling.

* Tests/AppKit/CPTextViewTest.j:
  - Add unit tests covering style copying and pasting with and without active selections.
  - Add test coverage for menu validation.

* Tests/Manual/TextEditor/WORKLIST.md:
  - Record Copy Style and Paste Style as tested.

Copy Style and Paste Style now function consistently with Cocoa.
2026-10-24 10:36:58 -06:00
..
2013-01-20 19:10:41 +00:00
2011-04-23 15:50:32 +02:00
2011-04-25 14:12:52 +02:00
2025-07-05 12:29:11 +02:00
2026-02-28 18:26:47 +01:00
2025-07-05 12:33:21 +02:00
2025-07-05 12:35:43 +02:00
2025-07-05 09:04:26 +02:00
2025-09-04 11:54:06 +03:00
2015-10-23 10:19:14 +02:00
2026-08-25 20:39:34 +02:00
2025-06-22 21:52:57 +02:00