• 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: drop location feedback in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drop location feedback in NSTextView


  • Subject: Re: drop location feedback in NSTextView
  • From: Satoshi Matsumoto <email@hidden>
  • Date: Fri, 04 Nov 2005 09:08:55 +0900

Hi,

I have never tried to customize the drag cursor location.  But how about to
override this method?

- (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender

I think the drag cursor of NSTextView may be drawn in this method.

Satoshi

on 05.11.4 7:31 AM, Ken Victor at email@hidden wrote:

> i have a custom subclass of NSTextView. i have this because i have
> some strings that i wish to be treated as if they are a single
> character for purposes of selection, deletion, etc. its all working
> the way i want in all cases but one. the one problematic situation is
> the drop point feedback when dragging into my custom view. when
> dragging into my view, the drop location feedback cursor "happily"
> appears between characters of my special string when i don't want
> this.
>
> i don't see how to change this and would appreciate some help.
>
> in checking the list archives, i see that i can get the drop location
> by getting the drag location and converting that to a character
> index. and i assume i could do this during draggingUpdated. what i
> don't see is anyway to change the drag location.
>
> tia,
> ken
>
>  _______________________________________________
> 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

-----------------------------------------------------
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

  • Follow-Ups:
    • Re: drop location feedback in NSTextView (2)
      • From: Satoshi Matsumoto <email@hidden>
References: 
 >drop location feedback in NSTextView (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: Reviews of "Advanced Mac OS X Programming"
  • Next by Date: Re: Reviews of "Advanced Mac OS X Programming"
  • Previous by thread: drop location feedback in NSTextView
  • Next by thread: Re: drop location feedback in NSTextView (2)
  • Index(es):
    • Date
    • Thread