Update Detector.m

Updated for Xcode6 Beta5