Can't use +initialize, now what?
Can't use +initialize, now what?
- Subject: Can't use +initialize, now what?
- From: Daryle Walker <email@hidden>
- Date: Wed, 29 Mar 2017 09:57:54 -0400
Sometimes, I see something in Apple’s AppKit/Foundation reference site that mentions that their technique should be loaded early in the program by putting it in the class’s “+initiallize” method. Now the new Xcode release notes say that “• Swift now warns when an NSObject subclass attempts to override the initialize class method, because Swift can't guarantee that the Objective-C method will be called. (28954946)” So, what is code that needs to be setup early supposed to do? Use the application delegate’s will-finish-launching method and hope it is early enough?
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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