• 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: NSWindowController and designated initializer rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController and designated initializer rules


  • Subject: Re: NSWindowController and designated initializer rules
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 23 Jun 2014 21:33:50 -0700

On Jun 23, 2014, at 20:16 , Graham Cox <email@hidden> wrote:

> And the example code is Obj-C. Why would Swift come into it?

Sorry, I wasn’t carping at you. It just occurred to me that “no one cares” in the pure Obj-C case — we know that invoking ‘super initWithWindowNibName:’ is safe, since we’ve all done it for years.

Hence my speculation that it was Swift’s greater formalism that got Sean thinking about this. Speculation only. Anyway, I believe Roland’s answer is correct: Swift has a loophole that lets the NSWindowController init pattern work there too.




_______________________________________________

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: NSWindowController and designated initializer rules
      • From: Graham Cox <email@hidden>
References: 
 >NSWindowController and designated initializer rules (From: Sean McBride <email@hidden>)
 >Re: NSWindowController and designated initializer rules (From: Graham Cox <email@hidden>)
 >Re: NSWindowController and designated initializer rules (From: Quincey Morris <email@hidden>)
 >Re: NSWindowController and designated initializer rules (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSWindowController and designated initializer rules
  • Next by Date: Re: NSWindowController and designated initializer rules
  • Previous by thread: Re: NSWindowController and designated initializer rules
  • Next by thread: Re: NSWindowController and designated initializer rules
  • Index(es):
    • Date
    • Thread