• 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: Brian Bruinewoud <email@hidden>
  • Date: Fri, 25 Dec 2009 11:16:05 +1100

How about "replace all"?

I haven't done any text programming so I'm not sure how much functionality the API offers. So this is purely a guess :)

On 24/12/2009, at 19:39 , Iceberg-Dev wrote:

>
> On Dec 23, 2009, at 10: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.
>
> That explains how to get a non-continuous selection but not how you can change the text in multiple locations.
>
> Let's say you have a non-continuous selection and you type or paste some text, it just delete the selection and insert the new text in the first selection range (tested in TextEdit).
>
>
>
>
> _______________________________________________
>
> 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

_______________________________________________

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>)
 >Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur? (From: Iceberg-Dev <email@hidden>)

  • Prev by Date: Re: n00b Q re: AppController
  • Next by Date: Re: Releasing Objects
  • Previous by thread: Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
  • Next by thread: Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
  • Index(es):
    • Date
    • Thread