Re: NSTextView Drag and Drop (Colors)
Re: NSTextView Drag and Drop (Colors)
- Subject: Re: NSTextView Drag and Drop (Colors)
- From: Satoshi Matsumoto <email@hidden>
- Date: Sat, 03 Jun 2006 16:17:09 +0900
- Thread-topic: NSTextView Drag and Drop (Colors)
on 06.06.3 1:41 PM, Seth Willits at email@hidden wrote:
> I want it to appear as though its dragging text so the cursor needs
> to move in the field _during_ the drag as well. Should I call the
> drawInsertionPointInRect:color:turnedOn: myself from
> draggingUpdated:? I'll have to keep the rect of the position it was
> last drawn at and erase it from there and draw it in the new location
> as well. Think it'll work/is the right way to go about it?
Usually NSTextView draws the dragging insertion caret without any
customization.
But when the object from the color panel only contains NSColorPboardType,
the dragging destination is fixed to the selected area by default and
NSTextView does not draw the dragging insertion caret.
So you may need to draw the dragging insertion caret yourself in
draggingUpdated:.
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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