mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 12:01:16 +00:00
* GormCore/GormFilesOwner.m * GormCore/GormFunctions.m * GormObjCHeaderParser/OCHeaderParser.m * Palettes/2Controls/ControlsPalette.m * Palettes/2Controls/GNUmakefile * Palettes/2Controls/GormPopUpButtonEditor.m * Palettes/3Containers/GormNSBrowser.m * Palettes/4Data/GormImageViewAttributesInspector.m: Correct compiler warnings found by clang. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@35094 72102866-910b-0410-8b05-ffd578937521
31 lines
718 B
Objective-C
31 lines
718 B
Objective-C
#include <AppKit/AppKit.h>
|
|
#include <GormCore/GormPrivate.h>
|
|
#include <GormCore/GormControlEditor.h>
|
|
#include <GormCore/GormViewWithSubviewsEditor.h>
|
|
#include "GormNSPopUpButton.h"
|
|
|
|
#define _EO ((NSPopUpButton *)_editedObject)
|
|
|
|
@interface GormPopUpButtonEditor : GormControlEditor
|
|
{
|
|
}
|
|
@end
|
|
|
|
@implementation GormPopUpButtonEditor
|
|
- (void) mouseDown: (NSEvent *)theEvent
|
|
{
|
|
// double-clicked -> let's edit
|
|
if (([theEvent clickCount] == 2) && [parent isOpened])
|
|
{
|
|
[[_EO cell]
|
|
attachPopUpWithFrame: [_EO bounds]
|
|
inView: _editedObject];
|
|
NSDebugLog(@"attach down");
|
|
[[document openEditorForObject: [[_EO cell] menu]] activate];
|
|
}
|
|
else
|
|
{
|
|
[super mouseDown: theEvent];
|
|
}
|
|
}
|
|
@end
|