On Sunday, August 26, 2001, at 10:43 AM, Jeff Lowrey wrote:
> At 9:56 AM -0500 8/26/01, Ken Williams wrote:
>
> Well, he was. But probably a reasonable way to go about that is through
> xs, which is to say through C.
>
> One could even hope that creating Cocoa interfaces for Perl would be as
> straightforward as creating a template for h2xs, building from the sample
> code I referenced previously.
>
> But I suspect it's slightly trickier than that, particularly given the
> (what seem to me to be) intricacies of when to retain and when to copy
> objects. But I'm not a real Cocoa programmer yet.
>
> -Jeff Lowrey
>
Actually it would be simpler to create an XS interface using the Carbon
API since it is straight C. Since Cocoa is based on Objective-C it would
be far trickier to do. I have been working on a OpenBase DBD driver which
has Objective-C in its XS layer and I can say it has been hard to get it
working (and it is only partially functional as is) due to object
allocation issues, etc. I'm almost ready to rewrite the thing in C.
Cheers,
--Ed