• 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: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?


  • Subject: Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
  • From: Charlie Dickman <email@hidden>
  • Date: Wed, 23 Dec 2009 17:20:28 -0500

If I understand the question what happens is that you receive a mousedown event with the modifier key set in the event. It is then up to you how to process a modifier-click. Vertical selection is something, I think, you have to do for yourself.

Perhaps there's some sample code at Apple's site.

On Dec 23, 2009, at 4:58 PM, Dave DeLong wrote:

> In many apps, you can hold down the option key to change the cursor into a crosshair, and do a vertical selection.  In addition, in apps like Pages, you can hold down the command key to do a non-contiguous selection.  I'd imagine that both of these scenarios might result in that method getting invoked.
>
> Dave
>
> On Dec 23, 2009, at 2:53 PM, Iceberg-Dev wrote:
>
>> What kind of event can trigger a non-linear selection to be replaced by multiple strings in different ranges?
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

Charlie Dickman
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur? (From: Iceberg-Dev <email@hidden>)
 >Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: There must be a better way
  • Next by Date: Re: How to uncheck checkbox in an NSTableView
  • Previous by thread: Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
  • Next by thread: NSTrackingArea mouse events
  • Index(es):
    • Date
    • Thread