Re: Selection and insertion point handling w/ NSTextAttachments
Re: Selection and insertion point handling w/ NSTextAttachments
- Subject: Re: Selection and insertion point handling w/ NSTextAttachments
- From: Glen Simmons <email@hidden>
- Date: Wed, 6 Oct 2004 15:11:58 -0500
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden