Re: Subclassing NSTextView

2008-08-13 Thread Michael Ash
On Tue, Aug 12, 2008 at 9:15 PM, John Joyce <[EMAIL PROTECTED]> wrote: > Ooops, nevermind!! > I answered my own question. > When adding the class file to the project, start with the NSView subclass > template, then change it to subclass NSTextView in the .h > and in the .m either call [super drawRe

Re: Subclassing NSTextView

2008-08-12 Thread Graham Cox
On 13 Aug 2008, at 11:15 am, John Joyce wrote: Too bad there is not an option for more subclass templates right in the GUI ... There is. Just create the files you want to use as templates and store them at: /Developer/Library/Xcode/Cocoa/.pbfiletemplate/ class. You also need a plist to

RE: Subclassing NSTextView

2008-08-12 Thread John Joyce
Ooops, nevermind!! I answered my own question. When adding the class file to the project, start with the NSView subclass template, then change it to subclass NSTextView in the .h and in the .m either call [super drawRect:rect]; or comment out or delete the drawRect method all together. That w

Subclassing NSTextView

2008-08-12 Thread John Joyce
to do this as an exercise to better understand the capabilities of subclassing NSTextView. Even a link to a tutorial/walk through would be nice. I've already read Subclassing NSTextView in the developer docs, but it does not quite show me everything, it seems. In the feeble attempts I'