Fixed selector leak & undeclared selector warnings

...as suggested in these SO answers:

http://stackoverflow.com/a/20058585/743957
http://stackoverflow.com/a/18920098/743957