On Feb 5, 2005, at 9:21 PM, Tyler Riddle wrote:

I have searched and searched and have just not been able to answer
this one. Does anyone know how to represent a boolean value with
PerlObjCBridge? I have tried a couple things and they have all failed:

The values of 0 or 1.
A subroutine that returns a boolean value, such as
sub YES { return
NSNumber->numberWithInt_(NSString->stringWithCString_("1")->intValue)- >boolValue;
}


In all cases but 0 I get the following error:

**** ERROR **** PerlObjCBridge: convertPerlToObjC(): Argument value is
not an object and can't be converted to an NSString

I haven't used PerlObjCBridge all that much, for obvious reasons. :-) But from the error message, it looks like it wants an object - have you tried passing an NSString or NSNumber object with values of "1" or 1?


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Reply via email to