macOS 10.13 suggestion for init() throws
macOS 10.13 suggestion for init() throws
- Subject: macOS 10.13 suggestion for init() throws
- From: Daryle Walker <email@hidden>
- Date: Tue, 28 Feb 2017 07:56:25 -0500
Could we have a NSDocument.init() that throws in the next macOS? That would translate to a "initWithError" in Objective C (I think). It would be the new primary initializer, with the current one calling it and dropping any error to oblivion.
This doesn't make any difference to Objective-C subclasses, which can use any parent class initializer, but would help in Swift, which needs store and release any "init" errors.
Sent from my iPhone
_______________________________________________
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