mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:20:38 +00:00
Fixes to make the code work with the BaseFinderOpen port to GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2713 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5557196f20
commit
8f9aad2c38
24 changed files with 588 additions and 171 deletions
17
Model/test.m
17
Model/test.m
|
@ -2,6 +2,18 @@
|
|||
#import <AppKit/AppKit.h>
|
||||
#import "IMLoading.h"
|
||||
|
||||
@interface MyView : NSView
|
||||
@end
|
||||
|
||||
@implementation MyView
|
||||
- (void)drawRect:(NSRect)rect
|
||||
{
|
||||
[[NSColor greenColor] set];
|
||||
NSRectFill (rect);
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
int main (int argc, char** argv, char** env)
|
||||
{
|
||||
id pool;
|
||||
|
@ -13,23 +25,28 @@ int main (int argc, char** argv, char** env)
|
|||
[NSProcessInfo initializeWithArguments:argv count:argc environment:env];
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
processInfo = [NSProcessInfo processInfo];
|
||||
arguments = [processInfo arguments];
|
||||
if ([arguments count] != 2) {
|
||||
printf ("usage: %s gmodel-file\n", [[processInfo processName] cString]);
|
||||
exit (1);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef NX_CURRENT_COMPILER_RELEASE
|
||||
initialize_gnustep_backend();
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
if (![GMModel loadIMFile:[arguments objectAtIndex:1]
|
||||
owner:[NSApplication sharedApplication]]) {
|
||||
printf ("Cannot load Interface Modeller file!\n");
|
||||
exit (1);
|
||||
}
|
||||
#endif
|
||||
|
||||
[[NSDPSContext currentContext] wait];
|
||||
[[NSApplication sharedApplication] run];
|
||||
printf ("exiting...\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue