Skip navigation.
 
mlRe: Selection and insertion point handling w/ NSTextAttachments
FROM : Glen Simmons
DATE : Wed Oct 06 22:11:58 2004

I tried that, and while it allows selection, it doesn't feel right b/c
there's that extra character. Drag selecting is not too bad, but using
Shift plus arrow keys requires twice the key presses. I ended up
subclassing NSTextView and overriding mouseDown:, mouseDragged: and
mouseUp: to handle the selection myself. I also filed a bug against
NSTextView.

Thanks,
Glen

On 6 Oct, 2004, at 3:06 PM, Louis C. Sacha wrote:

> 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