Re: <AppDelegate> does not implement the NSTextViewDelegate protocol
Re: <AppDelegate> does not implement the NSTextViewDelegate protocol
- Subject: Re: <AppDelegate> does not implement the NSTextViewDelegate protocol
- From: Roland King <email@hidden>
- Date: Fri, 01 Apr 2011 12:20:01 +0800
Did you declare the class as implementing the protocol?
@interface myclass : superclass <NSTextViewDelegate>
On Apr 1, 2011, at 7:09, JAMES ROGERS <email@hidden> wrote:
> Everything works but I am getting the following:
>
> Warning: Class "WinKeyer2AppDelegate" does not implement the 'NSTextViewDelegate' protocol."
>
> code snippet:
>
> - (void) awakeFromNib{
> [<*textView> setDelegate:self];
> }
>
> - (void) textDidChange:(NSNotification *)aNotification {
> < process string information from <textView>
> }
>
> NSTextView communicates with its delegate through methods declared both by theNSTextViewDelegate Protocol protocol and by its superclass’s protocol,NSTextDelegate Protocol. Note that all delegation messages come from the first text view.
> I have implemented a method from the super classe's protocol. Why am I getting the warning?
> Thanks for help to the newbie.
>
> JIM ROGERS
> email@hidden
> http://web.me.com/jimrogers_w4atk
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden