Fix window mouseUp. Doc building

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14327 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-08-25 02:47:00 +00:00
parent 23625fe2a5
commit 24c44dd051
246 changed files with 421 additions and 98312 deletions

View file

@ -12,24 +12,33 @@ int main (int argc, char** argv, char** env)
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
#endif
#if 1
processInfo = [NSProcessInfo processInfo];
arguments = [processInfo arguments];
[NSApplication sharedApplication];
if ([arguments count] < 2)
model = @"test.gmodel";
{
model = @"test.gmodel";
if (![NSBundle loadNibNamed: model owner: NSApp])
{
printf ("Cannot load Interface Modeller file!\n");
exit (1);
}
}
else
model = [arguments objectAtIndex: 1];
#endif
{
NSDictionary *table;
table = [NSDictionary dictionaryWithObject: NSApp forKey: @"NSOwner"];
model = [arguments objectAtIndex: 1];
if (![NSBundle loadNibFile: model
externalNameTable: table
withZone: [NSApp zone]])
{
printf ("Cannot load Interface Modeller file!\n");
exit (1);
}
#if 1
if (![NSBundle loadNibNamed: model
owner:[NSApplication sharedApplication]]) {
printf ("Cannot load Interface Modeller file!\n");
exit (1);
}
#endif
}
[[NSGraphicsContext currentContext] wait];
[[NSApplication sharedApplication] run];
printf ("exiting...\n");