• 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: Douglas Davidson <email@hidden>
  • Date: Thu, 30 Jun 2005 11:18:58 -0700


On Jun 30, 2005, at 11:14 AM, Ronnie O wrote:

Can anyone recommend an alternative that would allow me to grab the
keyDown event (in the case of character input, removal etc.) and
directly alter my dataString variable?  Then I could just format that
for display.  Then I would not need to de-format the data in the view.


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


References: 
 >Text Processing in NSTextView (From: Ronnie O <email@hidden>)

  • Prev by Date: Re: WebKit & MiniBrowser: Document Tail Wagging the Dog. Solved
  • Next by Date: Re: Questions-fest
  • Previous by thread: Text Processing in NSTextView
  • Next by thread: Pro-App Look
  • Index(es):
    • Date
    • Thread