Custom View, NSTextView and Responders

Discussion in 'Mac Programming' started by slooksterPSV, Feb 28, 2007.

  1. macrumors 68030


    Apr 17, 2004
    How can I create a custom view that contains an NSTextView that responds to responders of keyDown:
    Also how do I make the NSTextView with scrollbars if I'm creating it like this

    noteTaker = [[NSTextView alloc] initWithFrame:frameRect];
    [self addSubview: notetaker];

    EDIT: Or could I do this as setting the textView to execute an action and check for the tab key being pressed using [sender event] or something like that, and if the tab is pressed insert the character?

Share This Page