On Monday, March 4, 2002, at 02:53 PM, Finlay Dobbie wrote:

> On Monday, March 4, 2002, at 09:50 PM, Ken Williams wrote:
>
>> On Monday, March 4, 2002, at 03:44 PM, Finlay Dobbie wrote:
>>> I was thinking along the lines of writing the entire GUI in Perl, not 
>>> really sure though since I don't have a copy of the bridge to see 
>>> what is feasible :-)
>>
>> Oh, I see.  I hadn't thought about this, your message makes more sense 
>> now.
>
> Even just calling Perl from an Obj-C app directly would be easier, so 
> we could do GUI -> Fink::PkgVersion or whatever, rather than 
> Fink::PkgVersion in fink.pl -> stdout -> pipe -> parse in GUI -> 
> FinkPkgVersion in Obj-C, or similar.

This makes a lot of sense.  The IPC was definitely the hardest part of 
writing my program (although finding the little triangles for the table 
headers came a close second).  I got around some of the problems you've 
described by writing my own perl script to call the Fink methods and 
format the output in a way that was easy to parse.    Plus the 
"Moriarity" example on Apple's Cocoa development web site was a big 
help.  Still, everything would have been a lot easier if I could have 
called the Fink methods directly in my Cocoa classes.

On the other hand, won't any future Fink GUI have to incorporate some 
IPC to interact with apt-get and install the binary distribution?  So 
wouldn't it make sense to go ahead with whatever can be done now?  (He 
asked hopefully.)


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to