Received: by 10.42.19.199 with SMTP id d7mr3690893icb.11.1347078114056; Fri, 07 Sep 2012 21:21:54 -0700 (PDT) X-BeenThere: cocotron-dev@googlegroups.com Received: by 10.50.214.34 with SMTP id nx2ls171351igc.1.gmail; Fri, 07 Sep 2012 21:21:53 -0700 (PDT) Received: by 10.42.115.129 with SMTP id k1mr3714833icq.28.1347078113562; Fri, 07 Sep 2012 21:21:53 -0700 (PDT) Received: by 10.50.100.229 with SMTP id fb5msigb; Fri, 7 Sep 2012 18:37:37 -0700 (PDT) Received: by 10.68.244.73 with SMTP id xe9mr1843741pbc.10.1347068257662; Fri, 07 Sep 2012 18:37:37 -0700 (PDT) Date: Fri, 7 Sep 2012 18:37:36 -0700 (PDT) From: Trip Volpe To: cocotron-dev@googlegroups.com Message-Id: Subject: NSTextDelegate / NSTextViewDelegate missing in Cocotron? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1026_17982084.1347068256811" ------=_Part_1026_17982084.1347068256811 Content-Type: multipart/alternative; boundary="----=_Part_1027_123995.1347068256811" ------=_Part_1027_123995.1347068256811 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I'm attempting to get some code working on Cocotron that contains protocols conforming to NSTextViewDelegate; on compile it complained that NSTextViewDelegate did not exist. So I looked into Cocotron's AppKit implementation, and noticed that NSTextView.h does not contain a protocol, but has an @interface declaration with a category like this: @interface NSObject(NSTextView_delegate) -(BOOL)textView:(NSTextView *)textView doCommandBySelector:(SEL)selector; // ... several other methods expected to be part of NSTextViewDelegate @end Is there a reason it was done this way? It seems strange to me, and at any rate is incomplete, since a protocol called NSTextViewDelegate is expected to exist here. I would just like to better understand what considerations went into this implementation before I start tinkering with things (e.g., by adding this delegate protocol and the TextDelegate protocol it conforms to) to make my project work. :-) - Trip ------=_Part_1027_123995.1347068256811 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm attempting to get some code working on Cocotron that contains protocols= conforming to NSTextViewDelegate; on compile it complained that NSTextView= Delegate did not exist. So I looked into Cocotron's AppKit implementation, = and noticed that NSTextView.h does not contain a protocol, but has an @inte= rface declaration with a category like this:

= @interface = NSObject(NSTextView_delegate)
-(BOOL)textView:(NSTextView *)textView doC= ommandBySelector:(SEL)selector;
// ... several other methods expected to= be part of NSTextViewDelegate
@end

Is= there a reason it was done this way? It seems strange to me, and at any ra= te is incomplete, since a protocol called NSTextViewDelegate is expected to= exist here. I would just like to better understand what considerations wen= t into this implementation before I start tinkering with things (e.g., by a= dding this delegate protocol and the TextDelegate protocol it conforms to) = to make my project work. :-)

- Trip 
------=_Part_1027_123995.1347068256811-- ------=_Part_1026_17982084.1347068256811--