Remove ObjcPose.h since nothing is using it anymore.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-05-14 07:08:40 +00:00
parent 047c1182f9
commit 76adcbf2d1
8 changed files with 0 additions and 85 deletions

View File

@@ -1,67 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: wx/cocoa/ObjcPose.h
// Purpose: Macros for initializing poseAs, among other things
// Author: David Elliott
// Modified by:
// Created: 2002/12/03
// RCS-ID: $Id$
// Copyright: (c) 2002 David Elliott <dfe@cox.net>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef __WX_COCOA_PRIVATE_POSER_H__
#define __WX_COCOA_PRIVATE_POSER_H__
/*-------------------------------------------------------------------------
Objective-C Poser class initialization
-------------------------------------------------------------------------*/
#ifdef __OBJC__
#import <objc/objc-class.h>
#import <Foundation/NSObjCRuntime.h>
class wxPoseAsInitializer
{
public:
wxPoseAsInitializer()
: m_next(sm_first)
{
sm_first = this;
}
virtual ~wxPoseAsInitializer()
{
sm_first = m_next;
}
static void InitializePosers()
{
while(sm_first)
{
delete sm_first;
}
};
protected:
wxPoseAsInitializer *m_next;
static wxPoseAsInitializer *sm_first;
};
class wxDummyForPoseAsInitializer
{
public:
wxDummyForPoseAsInitializer(void*) {}
};
#define WX_IMPLEMENT_POSER(poser) \
class wxPoseAsInitializerFor##poser: public wxPoseAsInitializer \
{ \
protected: \
virtual ~wxPoseAsInitializerFor##poser() \
{ \
class_poseAs([poser class],[poser superclass]); \
} \
}; \
wxDummyForPoseAsInitializer wxDummyPoseAsInitializerFor##poser(new wxPoseAsInitializerFor##poser)
#else // __OBJC__
#warning "Objective-C++ Only!"
#endif // __OBJC__
#endif // __WX_COCOA_PRIVATE_POSER_H__

View File

@@ -16,7 +16,6 @@
#endif // WX_PRECOMP
#include "wx/cocoa/NSMenu.h"
#include "wx/cocoa/ObjcPose.h"
#import <Foundation/NSNotification.h>
#include "wx/cocoa/objc/NSMenu.h"

View File

@@ -22,8 +22,6 @@
#include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/NSTableDataSource.h"
#include "wx/cocoa/NSTableView.h"
#import <AppKit/NSTableView.h>

View File

@@ -22,7 +22,6 @@
#include "wx/window.h"
#endif // WX_PRECOMP
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/NSView.h"
#import <Foundation/NSNotification.h>

View File

@@ -23,7 +23,6 @@
#include "wx/menuitem.h"
#endif // WX_PRECOMP
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/NSWindow.h"
#import <Foundation/NSNotification.h>

View File

@@ -22,7 +22,6 @@
#endif
#include "wx/cocoa/ObjcRef.h"
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/mbarman.h"
#include "wx/cocoa/NSApplication.h"
@@ -38,11 +37,6 @@
// wxNSApplicationObserver singleton.
static wxObjcAutoRefFromAlloc<wxNSApplicationObserver*> sg_cocoaAppObserver = [[wxNSApplicationObserver alloc] init];
// ========================================================================
// wxPoseAsInitializer
// ========================================================================
wxPoseAsInitializer *wxPoseAsInitializer::sm_first = NULL;
// ========================================================================
// wxNSApplicationDelegate
// ========================================================================
@@ -131,10 +125,6 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
}
}
// Posing must be completed before any instances of the Objective-C
// classes being posed as are created.
wxPoseAsInitializer::InitializePosers();
return wxAppBase::Initialize(argc, argv);
}

View File

@@ -86,8 +86,6 @@
#include "wx/app.h"
#endif // WX_PRECOMP
#include "wx/cocoa/ObjcPose.h"
#import <AppKit/NSComboBox.h>
#import <Foundation/NSNotification.h>
#import <Foundation/NSString.h>

View File

@@ -30,7 +30,6 @@
#include "wx/log.h"
#endif
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/string.h"