Added overrides for designated initializers in all classes as required by XCode 7 compiler - #476
Added overrides for designated initializers in all classes as required by XCode 7 compiler#476javiertoledo wants to merge 1 commit into
Conversation
…d by XCode 7 compiler
|
Most values passed to the designated initializers should not be null, unless they are documented as an optional value. Object parameters are also tagged with In short, the I had started on some work to make these |
|
Thanks! As a temporary solution goes, this one has a pretty big footprint 😧 I can't find much info on |
|
I don't think there's any docs on Looks like it is simply a flag you can use to disable the |
|
I think that the ideal solution would be to make Searching for more info I found this answer from someone at Apple to the same question https://forums.developer.apple.com/message/15575#15575 As we can’t just wipe out the superclass initializers, marking them as “unavailable” and throwing an exception when they’re accessed looks for me like a better approach than just disabling the warnings or implementing methods with What do you think? If you like this approach I can close this PR and submit a second one later with the change. |
|
I’ve submitted the change I told you about before in PR #477, so I close this one, cheers! |

I don’t know if this is the kind of solution you expect, I see it more as a quick patch than a good solution, as there are some warnings about deferred NULL pointers. Any ideas for better defaults for C structs would be really appreciated.