registering the delegate
getting rid of the deprecation warning about ios projects vs osx