discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Renaissance Patch - provides NSApplicattionMain() equivalent


From: Pete French
Subject: Renaissance Patch - provides NSApplicattionMain() equivalent
Date: Sat, 26 Jul 2003 19:42:27 +0100

When using .nib, .gorm or .gmodel files in an application then all
one has to do is to speicify the name of the main file and this will
be loaded automatically at runtime. The main program file is just a call
to NSApplicationMain() which handles loading of the main file from
the main bundle, with an owner of the shared NSApplication.

This patch provides the same funtionality for Renaissance based applications.
The main program should call GSMarkupApplicationMain() instead of
NSApplicationMain() and this will handle the loading of the main markup file
from the main bundle with the shared NSApplication as the owner. It then
calls the original NSApplicaionMain() function to run the app.

The main markup file is sppecified in the Info.plist file by using
the key "GSMainMarkupFile". This can be specified in the GNUmakefile
like this:

AppName_MAIN_MARKUP_FILE = MyFile.gsmarkup

The idea throguhout has been to keep this as close to the standard way
of doing things through .nib files as possible.

Unpack the tar file in your gnustep directory - it will add two
new files:

dev-libs/Renaissance/Source/TagLibrary/GSMarkupApplicationMain.h
dev-libs/Renaissance/Source/TagLibrary/GSMarkupApplicationMain.m

and also creates a cdiff file MarkupMain.patch - runnign this through patch
will alter the following files:

core/make/Instance/application.make
dev-libs/Renaissance/Source/Renaissance.h
dev-libs/Renaissance/Source/TagLibrary/GNUmakefile

Patches are relative to todays CVS and the system has been tested on OSX
and GNUstep.

Hopefully this should make using Renaissance as drop-in replacement for
.nib files a bit easier and clearer as there are far less differences between
the two sets of code. let me know what you think...

-bat.


begin 644 MarkupMain.tar.gz
M'XL("&^Z(C\"`TUA<FMU<$UA:6XN=&%R`.U9>W/:2!+WO\NG:)/<!E@>XF42
M6&^%8&QSP8("?+F<XZ*$-*#9"(G5PUXNM=_]ND<"!`;'N^O<JZ;+9:&9Z9Y^
MS<RO1U>:^SE87&G<SB\T7S>/O@$I144YJ52.%$4IUJH*/16E5`F?BE(K*_B[
M5BLJU7)5J9U@>[&LE*M'RM&_@0+/UUR<<L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