Corrected some menu issues with testing and added the paletteDocument method to IBPalette.[hm].

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19356 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-05-16 21:20:14 +00:00
parent 7377aafb21
commit e7d5af0253
4 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2004-05-16 07:20 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: in testInterface: bring the temporary menu to the
front. There has been an issue with it sometimes not
displaying. In endTesting bring the normal menu to the front.
In unhide, bring the menu to the front.
* GormLib/IBPalette.[hm]: Added paletteDocument method as
per specs. Currently this method will return nil unless
the ivar is set to something conforming to IBDocuments.
2004-05-16 07:20 Gregory John Casamento <greg_casamento@yahoo.com>
* GormSoundEditor.m: Added methods to GormSound class to

5
Gorm.m
View file

@ -783,6 +783,9 @@ NSString *GormResizeCellNotification = @"GormResizeCellNotification";
}
}
// display the current main menu...
[[self mainMenu] display];
[notifCenter postNotificationName: IBDidBeginTestingInterfaceNotification
object: self];
@ -1054,6 +1057,7 @@ NSString *GormResizeCellNotification = @"GormResizeCellNotification";
}
[self setMainMenu: mainMenu];
[mainMenu display]; // bring it to the front...
isTesting = NO;
@ -1478,6 +1482,7 @@ NSString *GormResizeCellNotification = @"GormResizeCellNotification";
[(GormDocument *)document setDocumentActive: NO];
[(GormDocument *)document setDocumentActive: YES];
[window orderFront: sender];
[[self mainMenu] display];
}
}

View file

@ -27,6 +27,7 @@
#include <Foundation/NSMapTable.h>
#include <Foundation/NSObject.h>
#include <InterfaceBuilder/IBDocuments.h>
// forward references
@class NSString;
@ -58,8 +59,9 @@ extern NSString *GormLinkPboardType;
@interface IBPalette : NSObject
{
NSWindow *window;
NSImage *icon;
NSWindow *window;
NSImage *icon;
id<IBDocuments> document;
}
/*
* For internal use only - these class methods return the information
@ -101,5 +103,11 @@ extern NSString *GormLinkPboardType;
* palette.
*/
- (NSWindow*) originalWindow;
/**
* Returns an object representing the palette which conforms to the
* IBDocuments protocol.
*/
- (id<IBDocuments>) paletteDocument;
@end
#endif

View file

@ -143,5 +143,10 @@ static NSMapTable *viewToType = 0;
{
return window;
}
- (id<IBDocuments>) paletteDocument
{
return document;
}
@end