File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,14 @@ def args(self):
176
176
177
177
def run (self , arguments , options ):
178
178
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 + '. =('
181
187
return
182
188
183
189
_printIterative (startResponder , _responderChain )
You can’t perform that action at this time.
0 commit comments