From f53c4d3b8826d95f6297ad32aacb7a078213fb2d Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Thu, 25 Sep 2008 00:01:59 +0000 Subject: [PATCH] Remove some wxCocoa stuff that isn't in OS X Cocoa. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/taskbar.mm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/osx/cocoa/taskbar.mm b/src/osx/cocoa/taskbar.mm index af4717a47e..a5143fe0c9 100644 --- a/src/osx/cocoa/taskbar.mm +++ b/src/osx/cocoa/taskbar.mm @@ -35,7 +35,6 @@ #import #import -#include "wx/cocoa/NSApplication.h" #include "wx/cocoa/autorelease.h" // A category for methods that are only present in Panther's SDK @@ -383,24 +382,4 @@ void wxTaskBarIconWindowCustom::OnPaint(wxPaintEvent &event) dc.DrawIcon(m_icon,0,0); } -// ============================================================================ -// wxTaskBarIconNSApplicationDelegateCategory -// ============================================================================ - -// This neatly solves the problem of DLL separation. If the wxAdvanced -// library (which this file is part of) is loaded then this category is -// defined and we get dock menu behavior without app.mm ever having to -// know we exist. C++ did sucketh so. :-) - -@interface wxNSApplicationDelegate(wxTaskBarIconNSApplicationDelegateCategory) -- (NSMenu*)applicationDockMenu:(NSApplication *)sender; -@end - -@implementation wxNSApplicationDelegate(wxTaskBarIconNSApplicationDelegateCategory) -- (NSMenu*)applicationDockMenu:(NSApplication *)sender -{ - return wxTaskBarIconDockImpl::CocoaGetDockNSMenu(); -} -@end - #endif //def wxHAS_TASK_BAR_ICON -- 2.45.2