[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Image addition to NSTextView
From: |
Nicolas Roard |
Subject: |
Re: Image addition to NSTextView |
Date: |
Mon, 22 Sep 2003 01:58:16 +0100 |
On 2003-09-22 00:29:15 +0000 Alexander Malmberg <address@hidden> wrote:
Nicolas Roard wrote:
Hello,
I coded a small service which returns images from the selected text... and
I saw
that NSTextView didn't accepted tiff data :-/
Here is a small patch to correct that (it embeds the data in a
NSTextAttachment) :
Thanks! I've applied this (with some minor cleanups).
Ok ! I also noticed some parts of NSTextView where it seems to me that
NSTIFFPboardType should be added ... here is the patch :
<patch>
By the way, it would be good imho to add setImportsGraphics:YES to Ink.app,
so dnd of images will work ...
Document.m:261: [textView setImportsGraphics: YES];
thanks,
--
Nicolas Roard <address@hidden>
PGP : http://www.roard.com/download/key.gpg.asc
http://www.petitiononline.com/laafs/petition.html
Work for something because it is good, not just because
it stands a chance to succeed. - Vaclav Havel
patch
Description: Binary data