Links Powered by MicMac
Cocoa-C-Porting
Fink's translation team
Mac OSX, Fink and Unix
Client/Server Architecture
PowerPC Architecture - UML
System programming
Merise
Pierre-Loïc and Pascaline's wedding

Cocoa-C-Portage

Last modified: 23/10/2007 00:07:21 CEST
Author: Michèle Garoche contact

First step with Cocoa: Image Composer - First step with C: Finkessai - Finklistsection - Finkessai1 - ByteOrder - timeservice - timeservice1 - First step with Gtk+: FindByteOrder - TimeService - TimeService1 - First step with porting: cssed - bluefish - conglomerate

First step with Cocoa

ImageComposer image ImageComposer version 1.0.3

With this application you can compose images from existing ones and save the result as tiff image or as icon.

You can change image's width and height, rotate them, apply transparency and flip.

Here's a screenshot:

ImageComposer screenshot

Parts of code are borrowed from Troy Stephens, Thomas Schnitzer et David Remahl.

Version 1.0.3 runs on 10.1.5.

Application 220 Ko
Source code 252 Ko

Version 1.0.4 runs on 10.2 and 10.3

Application 224 Ko
Source code 368 Ko

First step with C

Finkessai

A command line tool to update Fink and the installed packages via cvs.

You should have installed Fink in the default directory. If this is not the case:

Change with any simple text editor the following line in the source code finkessai.c :
#define FINK_PATH "/sw/bin/fink"
with :
#define FINK_PATH "pathtoFink"

Open the terminal and move to the directory where finkessai.c is located by typing:
cd pathtofinkessai.c + return

Recompile the program as follows:
cc - o finkessai finkessai.c -Wall + return

For installation and use, see Jaguar.

For more details on primitives, see programming system - pthread and exec.

Tool 4 Ko
Source code 4 Ko

Finklistsection

A command line tool to list the Fink packages in whichever section you choose.

You should have installed Fink in the default directory. If this is not the case:

Change with any simple text editor the following line in the source code finklistsection.c :
#define FINK_PATH "/sw/bin/fink"
with :
#define FINK_PATH "pathtoFink"

Open the terminal and move to the directory where finklistsection.c is located by typing:
cd pathtofinklistsection.c + return

Recompile the program as follows:
cc - o finklistsection finklistsection.c -Wall + return

For installation and use, see Jaguar.

For more details on primitives, see system programming - pipes.

Tool 8 Ko
Source code 4 Ko

Finkessai1

A command line tool to reindex and update Fink and the installed packages via cvs.

You should have installed Fink in the default directory. If this is not the case:

Change with any simple text editor the following line in the source code finkessai.c :
#define FINK_PATH "/sw/bin/fink"
with :
#define FINK_PATH "pathtoFink"

Open the terminal and move to the directory where finkessai1.c is located by typing:
cd pathtofinkessai1.c + return

Recompile the program as follows:
cc - o finkessai1 finkessai1.c -Wall + return

For installation and use, see Jaguar.

For more details on primitives, see programming system - pthread and exec.

Tool 4 Ko
Source code 4 Ko

ByteOrder

A simple command line program to retrieve the machine's byte order.

To install:

Unstuff the source code (4 ko).

Open the terminal and move to byteorder.c by typing:
cd pathtobyteorder.c + return

Then compile it with:
cc byteorder.c -o byteorder -Wall + return

To use it, run it in the terminal with:
./byteorder + return

For more details on byte ordering, see programming system - programming socket (1).

timeservice

A simple command line program to get the current UTC time.

To install:

Unstuff the source code (4 ko).

Open the terminal and move to timeservice.c by typing:
cd pathtotimeservice.c + return

Then compile it with:
cc timeservice.c -o timeservice -Wall + return

To use it, run it in the terminal with:
./timeservice + return

For more details on conversion between network address and presentation address, see programming system - programming socket (1).

timeservice1

Variant of the previous one.

source code (4 ko).

First step with Gtk+

FindByteOrder

A simple Gtk+ program to retrieve the machine's byte order.

You should have installed Fink, then Gtk+ version 2.0

To install:

Unstuff the source code (8 ko).

Open the terminal and move to FindByteOrderProject by typing:
cd pathtoFindByteOrderProject + return

Clean up the program as follows:
make clean + return

Then compile it with:
make + return

To use it, run it under XDarwin in an xterm with:
./FindByteOrder + return

For more details on byte ordering, see programming system - programming socket (1).

TimeService

A simple Gtk+ program to get the current UTC time.

You should have installed Fink, then Gtk+ version 2.0

To install:

Unstuff the source code (8 ko).

Open the terminal and move to TimeServiceProject by typing:
cd pathtoTimeServiceProject + return

Clean up the program as follows:
make clean + return

Then compile it with:
make + return

To use it, run it under XDarwin in an xterm with:
./TimeService + return

For more details on conversions between network address and presentation address, see programming system - programming socket (1).

TimeService1

Variant of the previous one.

source code (8 ko).

First step with porting

Between 2004 and 2007, I had fun porting on Fink, translating into French, and/or documenting in English and French the following software:

abook, amyedit, bluefish, conglomerate, cssed, devhelp, docbook et ses variantes, dxf2svg, fop, glade2, gnome-background, gpaint2, gtk-doc, mrxvt, pangoxsl, robodoc, screem, tea, unrtf, winefish, xmlroff, xmlto.

Cssed icon Cssed

This application is a Css editor based on GTK2 with validation authored by Iago Rubio.

See the author's developement page.

Here's a screenshot:

Cssed screenshot

bluefish Bluefish

This application is a powerful editor for experienced web designers and programmers based on GTK2 with validation authored by Olivier Sessink.

See the author's developement page.

Here's a screenshot:

Bluefish screenshot

The info and patch files are hosted here till they will be hosted at Fink (it may take a few days to get them hosted), and in case Fink be down.

Conglomerate icon Conglomerate

This application is a GNOME wysiwyg editor for XML/Docbook documents with export capabilities to HTML, FO and PDF formats authored by the Conglomerate Team Project.

See the project web site.

Here's a screenshot:


First step with Cocoa: Image Composer - First step with C: Finkessai - Finklistsection - Finkessai1 - ByteOrder - timeservice - timeservice1 - First step with Gtk+: FindByteOrder - TimeService - TimeService1 - First step with porting: cssed - bluefish - conglomerate

Powered by Apache/1.3.41 (Darwin) PHP/4.4.8 on Mac OS X bluefish distributed.net Cssed icon Conglomerate icon Valid HTML 4.0.1 Valid CSS
Local date (dd/mm/yyyy): 08/08/2008 01:13:01 CEST