Adding carriage-return behavior to NSTextView
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