• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView Drag and Drop (Colors)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSTextView Drag and Drop (Colors) (From: Seth Willits <email@hidden>)

  • Prev by Date: Can NSMailDelivery be configured programmatically?
  • Next by Date: Re: Can NSMailDelivery be configured programmatically?
  • Previous by thread: Re: NSTextView Drag and Drop (Colors)
  • Next by thread: NSTreeController with kqueue, too many open files ( how to handle exceeding limit on open file descriptors)
  • Index(es):
    • Date
    • Thread