• 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: 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


  • 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>)

  • Prev by Date: Re: Occasional NSInternalInconsistencyException - could not load nib
  • Next by Date: Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
  • Previous by thread: 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