FROM : Gordon Apple
DATE : Sun Jun 01 01:49:10 2008
New attempt. Instead of intercepting the "text" key in my shape
CopyWithZone, I tried the obvious thing of subclassing NSTextStorage, adding
the copying/mutablecopying protocols using the same copy technique of
creating a new object initialized with the original. Even without the
protocols, this simply did not work. It wouldn't allow me to edit text at
all. Without even trying to make a copy, apparently NSTextView will accept
nothing but the original NSTextStorage -- no subclasses allowed, even
without any overrides.
DATE : Sun Jun 01 01:49:10 2008
New attempt. Instead of intercepting the "text" key in my shape
CopyWithZone, I tried the obvious thing of subclassing NSTextStorage, adding
the copying/mutablecopying protocols using the same copy technique of
creating a new object initialized with the original. Even without the
protocols, this simply did not work. It wouldn't allow me to edit text at
all. Without even trying to make a copy, apparently NSTextView will accept
nothing but the original NSTextStorage -- no subclasses allowed, even
without any overrides.
| Related mails | Author | Date |
|---|---|---|
| Gordon Apple | May 29, 20:03 | |
| Jens Alfke | May 30, 06:53 | |
| Gordon Apple | May 30, 17:13 | |
| Kyle Sluder | May 30, 22:16 | |
| Gordon Apple | Jun 1, 01:49 | |
| Ross Carter | Jun 1, 17:59 | |
| Gordon Apple | Jun 3, 17:15 | |
| Kyle Sluder | Jun 3, 18:51 | |
| Ross Carter | Jun 3, 20:19 | |
| Kyle Sluder | Jun 3, 22:21 | |
| Alastair Houghton | Jun 4, 00:09 | |
| Sherm Pendley | Jun 4, 10:14 |






Cocoa mail archive

