mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 22:56:52 +00:00
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:
parent
23625fe2a5
commit
24c44dd051
246 changed files with 421 additions and 98312 deletions
33
Model/test.m
33
Model/test.m
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue