On Friday, April 19, 2002, at 11:49 AM, Chris Nandor wrote: > Can I call Cocoa APIs from a Perl script, without using ProjectBuilder, > with CamelBones?
Not yet. I've been focused, so far, on Applications far more than on Tools. Many of the AppKit classes do not function at all outside of the context of an app bundle, so standalone .pl files will probably be limited to Foundation classes only, even when they're supported. Apple has a bridge they use internally - I've been in touch with the author about the possibility of sharing code. Their bridge is packaged as a module only, and basically can't use any GUI classes because of the lack of an app wrapper. The problem's apparently not in the bridge, though, it's in AppKit. Apparently AppKit just falls flat on its face if it's not run from within an app wrapper. I think that's actually what determines what goes into Foundation vs. AppKit - if it will run in a Tool, it goes into Foundation. And, of course, an app bundle is just a folder. You can just open the Resources folder of any CamelBones app, and edit the Perl code directly with any editor you choose. You really only need to recompile if you change any Objective-C code. And, even when you need to recompile, you can use the "pbxbuild" utility to do it. You can usually avoid the Project Builder IDE if you want to. In short, my answer depends on what it is you're really asking. If you'd like to use CamelBones without Project Builder, yes, you can do that, for the most part. I'm working out how to build it under GNUStep, too, even. But, if you're asking about using AppKit GUI functions without bundling scripts into app wrappers - that's not going to happen, I'm afraid, until AppKit itself can do that. > BTW, there is a new mailing list (not really announced yet, since I > don't > have anything yet to say on it) called [EMAIL PROTECTED] It is > planned > as a list for All Things Mac Toolbox, including, but not limited to, > Cocoa > and Carbon on Mac OS and Mac OS X. Feel free to use it for discussion > of > CamelBones, etc. Cool, where do I sign up? sherm-- Never put off until tomorrow what you can do today. There might be a law against it by that time.
