Re: [gtk+osx] GTK and nessus?
Status: Beta
Brought to you by:
jralls
From: Andy P. <en...@li...> - 2004-07-20 15:35:39
|
Hermann Schaefer wrote: > > Am 18.07.2004 um 14:56 schrieb David Burnett: > >> What you need to do is to wrap the program in an app bundle, this >> will allow it to operate through OSX application launcher and >> allow you to interact with its GUI. > > > Is there a howto somewhere? My knowledge of programming stopped with=20 > 6502 assembler and USDC PASCAL... Hermann Schaefer wrote: > > Am 18.07.2004 um 14:56 schrieb David Burnett: > >> What you need to do is to wrap the program in an app bundle, this >> will allow it to operate through OSX application launcher and >> allow you to interact with its GUI. > > > Is there a howto somewhere? My knowledge of programming stopped with > 6502 assembler and USDC PASCAL... There is some preliminary documentation on how to build a .app bundle on=20 our wiki. http://cinepaint.bigasterisk.com/BuildingGTKApplications Another alternative to moving to the .app structure, or the undocumented=20 function calls, is to create a "dummy" resource fork for your=20 executables and plugins, once they've been built and installed. This is=20 similar to what the FLTK project has done (http://www.fltk.org). 1) Create or find a simple .r file, (fltk has a good generic one for=20 it's mac projects, [it's just a text file]) Here's the contents of the fltk mac.r file: data 'MBAR' (128) { $"0001 0080" /* ...=C3=84 */ }; data 'MENU' (128, "Apple") { $"0080 0000 0000 0000 0000 FFFF FFFB 0114" /*=20 .=C3=84........=CB=87=CB=87=CB=87=CB=9A.. */ $"0A41 626F 7574 2046 4C54 4B00 0000 0001" /* =C2=ACAbout=20 FLTK..... */ $"2D00 0000 0000" /* -..... */ }; data 'carb' (0) { }; 2) run Rez on all the executable binaries that use UI (this can include=20 plugins) /Developer/Tools/Rez -t APPL -o YOUR_BINARY mac.r Additional Information: Bundles http://developer.apple.com/documentation/MacOSX/Conceptual/SystemOverview= /index.html?http://developer.apple.com/documentation/MacOSX/Conceptual/Sy= stemOverview/AppPackaging/chapter_5_section_1.html#//apple_ref/doc/uid/20= 000983 Resource Forks http://developer.apple.com/documentation/mac/MoreToolbox/MoreToolbox-11.h= tml Rez man Rez -Andy |