-
Notifications
You must be signed in to change notification settings - Fork 107
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
Modernized code #44
Modernized code #44
Conversation
Fixed the errors as a result and compiled successfully.
Hi @jkereako, Thanks for taking the time and effort to do a Pull Request. I'll be looking into this when time permits; however, a couple thoughts in the meantime:
|
@sibljon :
I had this in mind before I submitted the pull request:
The changes I made are in line with the NYT Objective-C style guide and the document Adopting Modern Objective-C. Both documents encourage brevity and clarity, (i.e. omitting |
Closing! I submitted this pull request over 1 year ago and there has not been any movement on this or the project in general. Since I created this pull request, I learned Swift ported this library to Swift. Check out AutocompleteTextField. |
👍 |
The main idea of this pull request is to bring the code up to modern Objective-C standards.
Refactored code
instancetype
replaced the return typeid
ininit
methods.strong
was removed because all properties are strong by defaultassign
was removed because it no longer has purposeunsafe_unretained
was replaced withweak
I turned on all warnings for XCode and enabled "treat warnings like errors" and compiled the project successfully.
Changed coding style
Originally, I was not going to submit a pull request so I went ahead and changed the coding style. But I figured what the hell and submitted a request anyway.