• 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: Text Processing in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Processing in NSTextView


  • Subject: Re: Text Processing in NSTextView
  • From: Ronnie O <email@hidden>
  • Date: Mon, 4 Jul 2005 17:04:36 -0500

Thanks for the suggestion.  I played with that delegate method to see
what values it outputs and if that was what I needed.  I see that
individual characters are captured and the location index is
specified.  I still will need to do some pre-formatting of the data
before I capture the data directly from the textView for insert into a
raw data variable b/c my tabs are included in the index location.  So
I need to account for that. Thanks again!

> Don't deal with the keyDown event directly.  You don't know how it is
> going to alter the text.  Try acting as the text view's delegate and
> handling -shouldChangeTextInRange:replacementString:, or in Tiger -
> shouldChangeTextInRanges:replacementStrings:.
>
> Douglas Davidson
>
 _______________________________________________
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

  • Prev by Date: Re: Reading data from an NSTask
  • Next by Date: Re: Reading data from an NSTask
  • Previous by thread: Re: Application launch from plugin
  • Next by thread: NSTextView Text Selectability
  • Index(es):
    • Date
    • Thread