Fixed build warning

Updated deprecated method call.
Updated project to Xcode 6 suggestions.