• 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: Subclassing NSWindowController in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing NSWindowController in Swift


  • Subject: Re: Subclassing NSWindowController in Swift
  • From: Rick Mann <email@hidden>
  • Date: Sun, 19 Oct 2014 00:56:33 -0700

> On Oct 19, 2014, at 00:54 , Quincey Morris <email@hidden> wrote:
>
> If, hypothetically, a subclass was allowed to call any initializer in the superclass, then the result would be an object that was fully (“correctly”) initialized in terms of the superclass, but that doesn’t mean it’s fully initialized in terms of the subclass.

The subclass initializer still has to initialize itself. It knows what the superclass initializer is doing, and it knows what it still needs to do. That's true even with the rules Swift currently imposes.

> In Swift, an external caller cannot initialize a class by calling one of its superclass initializers — formally. In practice, there are two cases:

Of course, not, and I'm not suggesting that at all.


--
Rick Mann
email@hidden



_______________________________________________

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: Subclassing NSWindowController in Swift
      • From: Quincey Morris <email@hidden>
References: 
 >Subclassing NSWindowController in Swift (From: Rick Mann <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Graham Cox <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Rick Mann <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Roland King <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Rick Mann <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Quincey Morris <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Rick Mann <email@hidden>)
 >Re: Subclassing NSWindowController in Swift (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Subclassing NSWindowController in Swift
  • Next by Date: Re: Subclassing NSWindowController in Swift
  • Previous by thread: Re: Subclassing NSWindowController in Swift
  • Next by thread: Re: Subclassing NSWindowController in Swift
  • Index(es):
    • Date
    • Thread