1 Dec 01:18
Questions re: DarwinPorts API for TkDarwinPorts
Kevin Walzer <sw <at> wordtech-software.com>
2004-12-01 00:18:07 GMT
2004-12-01 00:18:07 GMT
I've begun looking at the DarwinPorts API for TkDarwinPorts, and also at the code for the "port" utility, and I'm getting a bit lost: I'm not sure where to begin in trying to hook directly into DarwinPorts' internals. This is, doubtless, a function of my still having some things to learn about Tcl. Still, it seems to me that calling the DarwinPorts API directly from my application is re-inventing the wheel; I'm not sure why I should do this when port already does it so much better than I probably could. I understand that there's no real advantage to using Tk if I'm just going to wrap "port" as if I were calling any a shell command (as version 0.1 of TkDarwinPorts does). If that were my goal, I'd simply use AppleScript Studio and have a polished GUI up-and-running pretty quickly. Still, I'm not sure I want (or need) to re-create "port" for my own GUI. Would it be feasible to actually use a good deal of the "port" code in my own script? That seems to me to be a more promising approach. After all, my goal here is to provide a higher-level interfce to what is already provided by the DarwinPorts infrastructure (and as Fink Commander does for Fink), rather than re-implementing a good deal of that infrastructure on my own. Any advice is appreciated. -- Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com(Continue reading)
Cheers,
Chris
RSS Feed