Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
- Subject: Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
- From: Quincey Morris <email@hidden>
- Date: Fri, 07 Aug 2015 17:09:08 +0000
On Aug 7, 2015, at 05:47 , Bill Cheeseman <email@hidden> wrote:
>
> I don't understand why the fact that NSSplitViewController "implements" these delegate methods requires my override to call super, or what calling super accomplishes in this situation.
According to the latest header files, setting a different delegate on the controller’s splitView causes an exception. That means there really is no delegation pattern here (from your point of view). Instead, there are just some delegate-like methods you can override (but must call super if you do, in the ordinary way).
Internally, of course, there is delegation going one, but it’s now an implementation detail.
_______________________________________________
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