> On Feb 28, 2017, at 4:56 AM, Daryle Walker <dary...@mac.com> wrote: > > 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.
It is not possible to retroactively change the designated initializers for a class. The designated initializer pattern requires subclasses to cooperate by overriding and calling particular initializers. Changing the designated initializers for a class like NSDocument would break all of its existing subclasses. -- Greg Parker gpar...@apple.com <mailto:gpar...@apple.com> Runtime Wrangler _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com