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
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.
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
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.
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