Update Detector.m

Updated for Xcode6 Beta5
Merge pull request #3 from johnno1962/master

Update Detector.m