• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
      • From: Bill Cheeseman <email@hidden>
References: 
 >How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass (From: Bill Cheeseman <email@hidden>)
 >Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass (From: Quincey Morris <email@hidden>)
 >Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass (From: Bill Cheeseman <email@hidden>)
 >Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass (From: Fritz Anderson <email@hidden>)
 >Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
  • Next by Date: Re: Auto-layout annoyance
  • Previous by thread: Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
  • Next by thread: Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
  • Index(es):
    • Date
    • Thread