Moved the method [NSApplication orderFrontDataLinkPanel:] to here.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-09-06 00:33:57 +00:00
parent ba63a0123b
commit c996f959e8
2 changed files with 20 additions and 0 deletions

View file

@ -29,12 +29,17 @@
#ifndef _GNUstep_H_NSDataLinkPanel
#define _GNUstep_H_NSDataLinkPanel
#include <AppKit/NSApplication.h>
#include <AppKit/NSPanel.h>
@class NSDataLink;
@class NSDataLinkManager;
@class NSView;
@interface NSApplication (NSDataLinkPanel)
- (void) orderFrontDataLinkPanel: (id)sender;
@end
@interface NSDataLinkPanel : NSPanel <NSCoding>
{
// Attributes

View file

@ -26,6 +26,21 @@
#include <gnustep/gui/config.h>
#include <AppKit/NSDataLinkPanel.h>
@implementation NSApplication (NSDataLinkPanel)
- (void) orderFrontDataLinkPanel: sender
{
NSDataLinkPanel *dataLinkPanel = [NSDataLinkPanel sharedDataLinkPanel];
if (dataLinkPanel)
[dataLinkPanel orderFront: nil];
else
NSBeep();
}
@end
@implementation NSDataLinkPanel
//