]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove ObjcPose.h since nothing is using it anymore.
authorDavid Elliott <dfe@tgwbd.org>
Mon, 14 May 2007 07:08:40 +0000 (07:08 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 14 May 2007 07:08:40 +0000 (07:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/ObjcPose.h [deleted file]
src/cocoa/NSMenu.mm
src/cocoa/NSTableView.mm
src/cocoa/NSView.mm
src/cocoa/NSWindow.mm
src/cocoa/app.mm
src/cocoa/combobox.mm
src/cocoa/menuitem.mm

diff --git a/include/wx/cocoa/ObjcPose.h b/include/wx/cocoa/ObjcPose.h
deleted file mode 100644 (file)
index fc43094..0000000
+++ /dev/null
@@ -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__
index 18451658af990f780748a5cf606fc4fa8ea8d00a..819cc1f136cb21e2d4308bc6d8ccad50bfdebb81 100644 (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"
index 558c1a4558d39b4e68620e8678dd6421fe798b81..43d43aabebe8cf027d62d7ec6ca47d617c07e888 100644 (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>
index 7d864f2e309088494c2567132f9741c575b18733..b9bc51957436dab230511c2254f978b4c8e0fc7a 100644 (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>
index a18760ee592885f9604ef354564dd6076c2816da..7152f6c47bb982560b1749ad1c1d7b515d3bd248 100644 (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>
index cbff3c9f2ea2a125ce1bc788964db3579b7e939f..00ca9fb6dc30b231144a61107530db13d6564b78 100644 (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"
 // 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);
 }
 
index 822194e427d4d995cc30158e5e1b3092e2144eb9..4e016fb200a44c8bc7d9c2ef182d9cf6ad63e5cb 100644 (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>
index 140e2ead441e98b323076ad265bf430ce8856e0f..e87f6b2aa65cb3fc7fb4f58b94d1d33536352234 100644 (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"