-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix clang errors #378
base: master
Are you sure you want to change the base?
Fix clang errors #378
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
resignFirstResponder
calls to the superclassself.fields
to[self fields]
which allows the array to be initiated if it isn't alreadyFixes
Fixes #365
Testing