Skip to content

Quick fixes to make this a tad nicer/safer.#5

Open
uliwitness wants to merge 6 commits intojivadevoe:masterfrom
uliwitness:master
Open

Quick fixes to make this a tad nicer/safer.#5
uliwitness wants to merge 6 commits intojivadevoe:masterfrom
uliwitness:master

Conversation

@uliwitness
Copy link
Copy Markdown

Your category name (and filename, but that I can influence by placing your file in a subfolder) is unsafe. If I add another framework that uses similar utility code, I may get a collision and not even notice it. So I've prefixed the category name. Ideally, the files would be named "NSTimer+JDBlocks.*" as well, but I presume that'd break stuff for you at this point.

I also moved the timer into a dictionary. Not strictly necessary, but provides for less surprise (all other classes restrict userInfo to dictionaries). And finally, found a trailing ';' in an implementation that I cleaned up.

All these edits were done on Github, so I hope this still compiles.

@uliwitness
Copy link
Copy Markdown
Author

Huh. Somehow it included the ARC merge I made after doing this pull request. That wasn't intended. But if you want, merge that too. I think it's nice and small.

@Abizern
Copy link
Copy Markdown

Abizern commented Mar 19, 2014

👍 I came here to say the very same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants