This is a minor inconvenience but it seems that you cannot pass applescript true & false as part of the call method routine as objective c wants YES or NO which do not appear to be the same.
if you pass 1 for yes and 0 for no everything seems to work as expected, if you pass true for yes and no for false it does not work in my code.
I can’t confirm. I have never had problems passing boolean AppleScript values.
call "mymethod:" of "myclass" with parameter {true}
in
(void)mymethod:(BOOL)boolvalue{ ...
-> boolvalue results YES as expected
and
call "mymethod:" of "myclass" with parameter {true}
in
(void)mymethod:(NSNumber *)boolNumber{ ...
-> [boolNumber boolValue] results YES - does also work.
Probably is your problem somewhere else …
Maybe you can post some code …?
my fault … plz forgive me! As you probably have noticed English is not my native language - so it’s often difficult for me to express exactly what I mean