mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Code cleanup. Changes to handle connections.
This commit is contained in:
parent
feb5608836
commit
a55f961f1c
4 changed files with 40 additions and 5 deletions
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
2021-04-29 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* GormCore/GormClassManager.m: Code cleanup
|
||||
* GormCore/GormDocument.m: Code cleanup
|
||||
* GormCore/GormPrivate.m: Code cleanup
|
||||
* GormCore/GormWrapperLoader.m: Code cleanup.
|
||||
* GormLib/IBDocuments.h: Add some GS specific methods to the
|
||||
protocol.
|
||||
* Gorm.m: Remove unneeded ivar.
|
||||
* Plugins/Nib/GormNibWrapperLoader.m: Code cleanup.
|
||||
* Plugins/Xib/GormXibWrapperLoader.m: Add code to handle connections.
|
||||
* Resources/ClassInformation.plist: Add missing classes to
|
||||
this plist.
|
||||
|
||||
2021-04-22 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* GormCore/GormScrollViewEditor.m
|
||||
|
|
3
Gorm.m
3
Gorm.m
|
@ -54,7 +54,6 @@
|
|||
NSImage *testingImage;
|
||||
id connectSource;
|
||||
id connectDestination;
|
||||
NSPoint cascadePoint;
|
||||
NSMutableArray *testingWindows;
|
||||
NSSet *topObjects;
|
||||
}
|
||||
|
@ -1036,8 +1035,6 @@
|
|||
{
|
||||
// set the menu...
|
||||
mainMenu = (NSMenu *)gormMenu;
|
||||
//for cascadePoint
|
||||
cascadePoint = NSZeroPoint;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -290,12 +290,14 @@
|
|||
id dest = [o destination];
|
||||
id src = [o source];
|
||||
|
||||
NSLog(@"connector = %@", o);
|
||||
|
||||
// NSString *dest_name = [document nameForObject: dest];
|
||||
if([o isKindOfClass: [NSNibControlConnector class]])
|
||||
{
|
||||
NSString *tag = [o label];
|
||||
NSRange colonRange = [tag rangeOfString: @":"];
|
||||
NSUInteger location = colonRange.location;
|
||||
// NSString *cc = [classManager customClassForObject: [o target]];
|
||||
|
||||
if(location == NSNotFound)
|
||||
{
|
||||
|
@ -308,6 +310,7 @@
|
|||
|
||||
if ([o isKindOfClass: [NSNibOutletConnector class]])
|
||||
{
|
||||
[classManager addOutlet: [o label] forObject: [o destination]];
|
||||
}
|
||||
|
||||
if (dest == nibFilesOwner)
|
||||
|
@ -346,6 +349,7 @@
|
|||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
[document addConnector: o];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -394,6 +394,26 @@
|
|||
Actions = ("showWindow:");
|
||||
Outlets = (document, window);
|
||||
Super = NSResponder;
|
||||
};
|
||||
};
|
||||
NSController = {
|
||||
Actions = ();
|
||||
Outlets = ();
|
||||
Super = NSObject;
|
||||
};
|
||||
NSObjectController = {
|
||||
Actions = ();
|
||||
Outlets = (content);
|
||||
Super = NSController;
|
||||
};
|
||||
NSArrayController = {
|
||||
Actions = ("selectNext:","selectPrevious:","insert:");
|
||||
Outlets = (arrangedObjects);
|
||||
Super = NSObjectController;
|
||||
};
|
||||
NSDictionaryController = {
|
||||
Actions = ();
|
||||
Outlets = ();
|
||||
Super = NSArrayController;
|
||||
};
|
||||
Object = {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue