diff --git a/GormDocument.m b/GormDocument.m index f7a9af7b..49e081a7 100644 --- a/GormDocument.m +++ b/GormDocument.m @@ -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; } } diff --git a/GormWindowEditor.m b/GormWindowEditor.m index 26b064e9..dc5eac02 100644 --- a/GormWindowEditor.m +++ b/GormWindowEditor.m @@ -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 */ diff --git a/README b/README index 35f72972..4cf483cd 100644 --- a/README +++ b/README @@ -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 ... + + diff --git a/Testing/GormTest.m b/Testing/GormTest.m index 25748163..e9002a15 100644 --- a/Testing/GormTest.m +++ b/Testing/GormTest.m @@ -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; }