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: Mike Abdullah <email@hidden>
- Date: Sat, 08 Aug 2015 14:31:15 +0100
> On 8 Aug 2015, at 14:06, Bill Cheeseman <email@hidden> wrote:
>
> I think you're right on both counts.
>
> I will post this weekend about my solution to the other problem I posted about -- how to make collapse and uncollapse work both from a toggle button and by double-clicking or dragging the divider. It turns out that the frameworks use two different techniques for the two different scenarios, and that fact is not documented in the release notes, the reference document, or the header comments. In fact, the header comments for NSSplitViewItem (in NSSplitViewController.h) imply the opposite, falsely.
One thing you might want to watch out for that caught me out:
Although NSSplitViewController is documented to be the split view’s delegate, I found that — at least for controllers created in IB — that relationship isn’t actually hooked up by default. I overrode delegate methods and they weren’t being called. So I manually made the controller be the split view’s delegate, and all works.
Mike.
_______________________________________________
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