• 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
Adding carriage-return behavior to NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding carriage-return behavior to NSTextView


  • Subject: Adding carriage-return behavior to NSTextView
  • From: Andrew Begel <email@hidden>
  • Date: Tue, 25 Dec 2001 17:19:06 -0800

How can I add a carriage return behavior to an NSTextView? It seems that the only way is to override the insertNewLine() method by subclassing NSTextView. However, when I create an NSTextView via IB, I get an NSScrollView wrapping the NSTextView, and it subsequently won't let me select a custom class for the enclosed NSTextView. Does NSTextView send its key events to a delegate I could override? Or should I be creating the NSTextView via code instead of by IB?

Thanks,

Andrew


  • Follow-Ups:
    • Re: Adding carriage-return behavior to NSTextView
      • From: Esteban <email@hidden>
  • Prev by Date: PBX No Slide Hack v2
  • Next by Date: Re: Adding carriage-return behavior to NSTextView
  • Previous by thread: PBX No Slide Hack v2
  • Next by thread: Re: Adding carriage-return behavior to NSTextView
  • Index(es):
    • Date
    • Thread