Fix clang errors#378
Fix clang errors#378davidrothera wants to merge 1 commit intonicklockwood:masterfrom davidrothera:develop
Conversation
* Add `resignFirstResponder` calls to the superclass * Change `self.fields` to `[self fields]` which allows the array to be initiated if it isn't already
|
That doesn't make a whole lot of sense. self.fields is functionally equivalent to [self fields]. Can you explain what effect you believe this change had on the behavior? |
|
The basis behind my change was that calling [1] https://github.com/davidrothera/FXForms/blob/develop/FXForms/FXForms.m#L1732 |
|
But Try putting a breakpoint inside I think perhaps the issue that you're referring to is "Argument to 'NSMutableArray' method 'addObject;:' cannot be nil"? In which case the issue it's complaining about is that the I'll fix this in the next update. |
|
Yeah I think you are right, its strange though as making the change in the PR resolved the clang error and retained all functionality. |
|
Hmm, I can't actually replicate a clang warning on the line you fixed. The warning I'm seeing is on the line a few below that: |
|
Yes, the error was on that line and the change I made resolved that one lower down. |
|
I think maybe the change above just confused the analyzer so that it couldn't parse the logic below anymore ¯_(ツ)_/¯ |
|
Quite possibly, clang isn't the smartest ;) |
Changes
resignFirstRespondercalls to the superclassself.fieldsto[self fields]which allows the array to be initiated if it isn't alreadyFixes
Fixes #365
Testing