Re: NSWindowController and designated initializer rules
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