Skip navigation.
 
mlRe: Selection and insertion point handling w/ NSTextAttachments
FROM : Louis C. Sacha
DATE : Wed Oct 06 22:06:39 2004

Hello...

Have you tried putting one or two spaces with a really small font
size in between each of the images?

You would probably have to do a bit of checking when the user
pastes/deletes images to make sure that there are still the correct
number of spaces between each of the images involved. As long as
there aren't a huge number of images, the processing time for
iterating through all of them to maintain the correct number of
spaces shouldn't be too bad, so the implementation probably wouldn't
even need to be too complex.


Hope that helps...

   Louis


>I'm using an NSTextView to display a series of small images and no
>text. The user should be able to select, cut / copy / paste, delete
>the images. The problem is that you can't click between 2
>consecutive images to place the insertion point for editing. You
>also can't drag across several consecutive images to select them. Is
>there a solution to this? I've considered overriding mouseDown:,
>mouseUp: & mouseDragged: to do this myself. Is there a better
>solution?
>
>Thanks,
>Glen Simmons

Related mailsAuthorDate
mlSelection and insertion point handling w/ NSTextAttachments Glen Simmons Sep 10, 16:10
mlRe: Selection and insertion point handling w/ NSTextAttachments Louis C. Sacha Oct 6, 22:06
mlRe: Selection and insertion point handling w/ NSTextAttachments Glen Simmons Oct 6, 22:11
mlRe: Selection and insertion point handling w/ NSTextAttachments John Labovitz Oct 7, 19:46
mlRe: Selection and insertion point handling w/ NSTextAttachments Glen Simmons Oct 7, 22:16