Skip navigation.
 
mlRe: Custom attachment in a text view
FROM : David Sinclair
DATE : Tue Nov 13 06:37:12 2007

On Nov 6, 2007, at 13:59:38, David Sinclair wrote:

> Goal: drag a table row into a text view as a custom attachment.
>
> Sounds simple, but it seems harder than it should be.  It's easy 
> enough to create a custom attachment via a NSTextAttachmentCell 
> subclass, and dragging that (or programmatically inserting it) into 
> the text view is also easy... but that leaves two problems: dragging/
> copying it gives an exception, and persisting it via Core Data makes 
> it vanish.



For the archives: here's a description of what I ended up with, thanks 
to Douglas Davidson's comments and off-list discussion with another 
developer that was working on much the same problem:

<http://www.dejal.com/blog/2007/11/cocoa-custom-attachment-text-view>

--

David Sinclair, Dejal Systems, LLC - <email_removed>
Dejal blog - http://www.dejal.com/blog/
Cocoa code - http://www.dejal.com/developer/
Now on Twitter - http://twitter.com/dejal/

Related mailsAuthorDate
mlCustom attachment in a text view David Sinclair Nov 6, 22:59
mlRe: Custom attachment in a text view Douglas Davidson Nov 6, 23:09
mlRe: Custom attachment in a text view David Sinclair Nov 13, 06:37