File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,14 @@ def args(self):
176176
177177 def run (self , arguments , options ):
178178 startResponder = arguments [0 ]
179- if not fb .evaluateBooleanExpression ('(BOOL)[(id)' + startResponder + ' isKindOfClass:[UIResponder class]]' ) and not fb .evaluateBooleanExpression ('(BOOL)[(id)' + startResponder + ' isKindOfClass:[NSResponder class]]' ):
180- print 'Whoa, ' + startResponder + ' is not a UI/NSResponder. =('
179+
180+ isMac = runtimeHelpers .isMacintoshArch ()
181+ responderClass = 'UIResponder'
182+ if isMac :
183+ responderClass = 'NSResponder'
184+
185+ if not fb .evaluateBooleanExpression ('(BOOL)[(id)' + startResponder + ' isKindOfClass:[' + responderClass + ' class]]' ):
186+ print 'Whoa, ' + startResponder + ' is not a ' + responderClass + '. =('
181187 return
182188
183189 _printIterative (startResponder , _responderChain )
You can’t perform that action at this time.
0 commit comments