Re: Foundation in Perl script

2006-01-03 Thread Doug Wiebe
my $str = NSString-stringWithString_(astring); does work with PerlObjCBridge. In general, if an Objective-C method expects an object and you pass a Perl string, PerlObjCBridge autoconverts the Perl string to an NSString. NSString return values are not autoconverted to Perl strings, by

Re: Foundation in Perl script

2006-01-01 Thread Sherm Pendley
On Dec 28, 2005, at 9:09 PM, Manfred Bergmann wrote: The toll-free bridge also includes something like this? my $str = NSString-stringWithString(astring); where with PerlObjCBridge you have to use this: my $str = NSString-stringWithCString_(astring); Yes - strings are bridged both ways.

Foundation in Perl script

2005-12-28 Thread Manfred Bergmann
Hi list. I want to use some Foundation objects like NSDictionary and others in a Perl script (because of writing a plist of that). I succeeded with using PerlObjCBridge (use Foundation). Is this possible with CamelBones, too? Sherm? Thx, Manfred

Re: Foundation in Perl script

2005-12-28 Thread Sherm Pendley
On Dec 28, 2005, at 7:05 PM, Manfred Bergmann wrote: I want to use some Foundation objects like NSDictionary and others in a Perl script (because of writing a plist of that). I succeeded with using PerlObjCBridge (use Foundation). Is this possible with CamelBones, too? Sherm? Yes, it is.

Re: Foundation in Perl script

2005-12-28 Thread Manfred Bergmann
Thx. That works like a charm. The toll-free bridge also includes something like this? my $str = NSString-stringWithString(astring); where with PerlObjCBridge you have to use this: my $str = NSString-stringWithCString_(astring); Best regards, Manfred Am 29.12.2005 um 12:34 schrieb Sherm