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 20:36:03 +0000
On Aug 7, 2015, at 12:33 , Bill Cheeseman <email@hidden> wrote:
>
> But by calling super the way I showed in my original post, I am not making use of any result that might be returned by super's implementation of the method. And how could super's implementation return anything meaningful to my application anyway?
I agree it’s unclear, as it always is when overriding but calling super.
The real question is, who’s in control of the value that the delegate method returns? I think you used ‘canCollapse…’ as an example, so how is it really determined whether collapsing is allowed? If the superclass is deciding, you should return its value.
_______________________________________________
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