Added check for selectors based on whats available, favoring Xcode 6 a bit.