git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5614 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-22 12:50:11 +00:00
parent 2133071793
commit 2c27fc259d
4 changed files with 45 additions and 1 deletions

View file

@ -1091,7 +1091,7 @@ static NSImage *classesImage = nil;
{
if ([connections indexOfObjectIdenticalTo: con] != NSNotFound)
{
NSLog(@"Argh - not all editor linkss removed");
NSLog(@"Argh - not all editor links removed");
break;
}
}

View file

@ -171,6 +171,11 @@ NSRectFromPoints(NSPoint p0, NSPoint p1)
@implementation GormWindowEditor
- (void) encodeWithCoder: (NSCoder*)aCoder
{
NSLog(@"Argh - encoding window editor!");
[super encodeWithCoder: aCoder];
}
/*
* Intercepting events in the view and handling them
*/

23
README
View file

@ -87,3 +87,26 @@ Once these are done, the object editor needs to be made to support connections
so that we can connect between objects other than views, then we need to write
a menu editor.
22 December 1999
Connections inspector is now working - but it needs some effort to tidy it up.
Class info (outlets and actions) is specified in 'ClassInformation.plist'
and needs to be present so that the app knows what outlets/actions an object
has (and therefore what connections can be made).
The view size inspector is working - allowing you to set the size of the
subviews within a window.
The attributes inspector for 'FilesOwner' is working, so you can define the
class of the files owner (it defaults to NSApplication).
There is a crude panel for setting the name of the selected object.
I've created a couple of new images and got rid of thh two NeXT images that
were lurking in there.
There is a Testing directory, with a GormTest application that lets you load
a nib for testing - it assumes that the nib will set its FilesOwners delegate
to point to a window, and makes that window the key window ...

View file

@ -37,6 +37,7 @@
{
NSArray *fileTypes = [NSArray arrayWithObject: @"nib"];
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
id oldDelegate = [NSApp delegate];
int result;
[oPanel setAllowsMultipleSelection: NO];
@ -51,6 +52,21 @@
externalNameTable:
[NSDictionary dictionaryWithObject: NSApp forKey: @"NSOwner"]
withZone: NSDefaultMallocZone()];
if ([NSApp delegate] == oldDelegate)
{
NSRunAlertPanel(NULL,
[NSString stringWithFormat: @"Nib did not set app delegate"],
@"OK", NULL, NULL);
return nil;
}
if ([[NSApp delegate] isKindOfClass: [NSWindow class]] == NO)
{
NSRunAlertPanel(NULL,
[NSString stringWithFormat:
@"Nib set app delegate to something other than a window"],
@"OK", NULL, NULL);
return nil;
}
[[NSApp delegate] makeKeyAndOrderFront: self];
return self;
}